aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/tests/test_transport_wire_parity.py
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-09-24 09:03:06 +0200
committerChristophe Besson <cbesson@gmail.com>2026-09-24 16:45:38 +0200
commitffdb70784f11de0df8162cea5e9f5abfac91ea96 (patch)
tree70d7577aaef5e4b5b493444bb8d1d81d8e416ce0 /packages/meshbay-node/tests/test_transport_wire_parity.py
parentfd620dc2b61b5ef6fe72581321f488ebf8faf746 (diff)
downloadmeshbay-ffdb70784f11de0df8162cea5e9f5abfac91ea96.tar.gz
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 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-node/tests/test_transport_wire_parity.py')
-rw-r--r--packages/meshbay-node/tests/test_transport_wire_parity.py5
1 files changed, 3 insertions, 2 deletions
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()