diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2024-10-09 20:59:35 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2024-10-09 20:59:35 +0200 |
commit | 5ae58def2cd9e781af332a57266ae92385a6fb8b (patch) | |
tree | 5feef12f8cc7185994620814da111e25b9bf854f | |
parent | 49d91088e853167083aa6c9823adfe7a3cadb6c5 (diff) |
(test) Handle unknown record item types
Changelog: Handle unknown record item types
-rw-r--r-- | network.test | 19 | ||||
-rw-r--r-- | storage.test | 22 |
2 files changed, 41 insertions, 0 deletions
diff --git a/network.test b/network.test index 6f16f7d..40190f4 100644 --- a/network.test +++ b/network.test @@ -409,6 +409,12 @@ test SendUnknownObjectType: "" expect /store-done ($refpat)/ capture r1 + send: + "store rec" + "test:unknown TEST" + "" + expect /store-done ($refpat)/ capture r2 + send "test-message-send 1 $r1" expect /test-message-send done/ @@ -421,3 +427,16 @@ test SendUnknownObjectType: local: expect /load-(.*)/ capture done guard (done == "done") + + send "test-message-send 1 $r2" + expect /test-message-send done/ + + with p2: + expect /test-message-received rec [0-9]+ $r2/ + + send "load $r2" + expect /load-type rec [0-9]+/ + expect /load-line test:unknown TEST/ + local: + expect /load-(.*)/ capture done + guard (done == "done") diff --git a/storage.test b/storage.test index 2a53bb8..db9e0a1 100644 --- a/storage.test +++ b/storage.test @@ -496,3 +496,25 @@ test UnknownObjectType: local: expect /load-(.*)/ capture done guard (done == "done") + + +test UnknownRecordItemType: + let refpat = /blake2#[0-9a-f]*/ + + spawn as p + spawn as p2 on p.node + + with p: + send: + "store rec" + "test:unknown TEST" + "" + expect /store-done ($refpat)/ capture r1 + + with p2: + send "load $r1" + expect /load-type rec [0-9]+/ + expect /load-line test:unknown TEST/ + local: + expect /load-(.*)/ capture done + guard (done == "done") |