From ffdb70784f11de0df8162cea5e9f5abfac91ea96 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Thu, 24 Sep 2026 09:03:06 +0200 Subject: refactor(node): move file browsing and folder/file ops out of webrtc_server FilesMixin in transport/webrtc/files.py; the blocking disk helpers join _locate in webrtc/disk.py, and the lease states go to webrtc/limits.py. Co-Authored-By: Claude Opus 5.5 --- packages/meshbay-node/tests/test_transport_wire_parity.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'packages/meshbay-node/tests/test_transport_wire_parity.py') diff --git a/packages/meshbay-node/tests/test_transport_wire_parity.py b/packages/meshbay-node/tests/test_transport_wire_parity.py index cd31fb4..3250f7f 100644 --- a/packages/meshbay-node/tests/test_transport_wire_parity.py +++ b/packages/meshbay-node/tests/test_transport_wire_parity.py @@ -21,7 +21,8 @@ from meshbay_common.crypto import generate_gek from meshbay_common.groupbox import PURPOSE_INDEX, unseal from meshbay_common.protocol import MNP, file_chunk_plaintext, file_chunk_wire from meshbay_node.indexer import DirectoryIndexer -from meshbay_node.transport import quic_server, webrtc_server +from meshbay_node.transport import quic_server +from meshbay_node.transport.webrtc import disk from meshbay_node.transport.wire import index_sync_message from node_source import webrtc_source @@ -102,7 +103,7 @@ def test_chunk_wire_shape_is_identical_across_transports(gek, shared_dir): path = shared_dir / "film.mkv" file_hash = bytes.fromhex("ab" * 32) - from_webrtc = webrtc_server._read_and_encrypt(gek, path, 0, file_hash, "ab" * 32) + from_webrtc = disk._read_and_encrypt(gek, path, 0, file_hash, "ab" * 32) from_quic = quic_server._read_and_encrypt(gek, path, 0, file_hash, "ab" * 32) assert from_webrtc.keys() == from_quic.keys() -- cgit v1.2.3