diff options
Diffstat (limited to 'packages/meshbay-hub/tests/test_transport_contracts.py')
| -rw-r--r-- | packages/meshbay-hub/tests/test_transport_contracts.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/meshbay-hub/tests/test_transport_contracts.py b/packages/meshbay-hub/tests/test_transport_contracts.py index fe550f9..f2f4372 100644 --- a/packages/meshbay-hub/tests/test_transport_contracts.py +++ b/packages/meshbay-hub/tests/test_transport_contracts.py @@ -372,8 +372,11 @@ def test_the_upload_itself_is_sealed(transport): "the destination is on the message in clear") assert "...sealed," in sent or "...probeSealed," in sent, ( "the message must carry the sealed pair") - assert "supportsSealedUpload" in body, ( - "an older node must be refused before a chunk is sent, not after") + # And no branch that sends anything else: an upload is sealed or it is not + # sent. A fallback here is a fallback the node would have to keep opening. + assert "filename: file.name" not in body.replace( + "msgpack_encode({ filename: file.name", ""), ( + "a filename reaches the message outside the seal") # ── MNP 1.0: the sealed handshake ack ──────────────────────────────────────── |