diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2024-10-07 22:17:40 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2024-10-07 22:17:40 +0200 |
commit | 52c874ab42cd266d1b26ce1c045fcaf8eb410b32 (patch) | |
tree | f990148ccde1b1d9defc7eb0a11637bf4d0cc06f /test/network.test | |
parent | 6d0e67bfdf84d1dff16232d8e31147f6c0d11cdf (diff) |
Handle unknown object type
Changelog: Handle unknown object type
Diffstat (limited to 'test/network.test')
-rw-r--r-- | test/network.test | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/test/network.test b/test/network.test index efd508f..6f16f7d 100644 --- a/test/network.test +++ b/test/network.test @@ -380,3 +380,44 @@ test Reconnection: guard (done == "done") expect /test-message-received blob [0-9]+ $message/ + + +test SendUnknownObjectType: + let refpat = /blake2#[0-9a-f]*/ + + spawn as p1 + spawn as p2 + + with p1: + send "create-identity Device1" + send "start-server" + with p2: + send "create-identity Device2" + send "start-server" + + expect from p1: + /peer 1 addr ${p2.node.ip} 29665/ + /peer 1 id Device2/ + expect from p2: + /peer 1 addr ${p1.node.ip} 29665/ + /peer 1 id Device1/ + + with p1: + send: + "store test-unknown" + "TEST" + "" + expect /store-done ($refpat)/ capture r1 + + send "test-message-send 1 $r1" + expect /test-message-send done/ + + with p2: + expect /test-message-received test-unknown [0-9]+ $r1/ + + send "load $r1" + expect /load-type test-unknown 5/ + expect /load-line TEST/ + local: + expect /load-(.*)/ capture done + guard (done == "done") |