aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/tests/test_transport_wire_parity.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-node/tests/test_transport_wire_parity.py')
-rw-r--r--packages/meshbay-node/tests/test_transport_wire_parity.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/meshbay-node/tests/test_transport_wire_parity.py b/packages/meshbay-node/tests/test_transport_wire_parity.py
index 3250f7f..c7008c8 100644
--- a/packages/meshbay-node/tests/test_transport_wire_parity.py
+++ b/packages/meshbay-node/tests/test_transport_wire_parity.py
@@ -24,7 +24,7 @@ from meshbay_node.indexer import DirectoryIndexer
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
+from node_source import daemon_source, webrtc_source
from conftest import one_root
@@ -88,9 +88,7 @@ def test_the_daemon_does_not_build_an_index_message_itself():
site for an index message, and the one that would have kept sending cleartext
while the other two were sealed.
"""
- from meshbay_node import daemon
-
- source = inspect.getsource(daemon)
+ source = daemon_source()
assert "index_delta_message" in source and "index_sync_message" in source
assert '"type": MNP.INDEX_DELTA' not in source, (
"the daemon builds index_delta by hand again")