summaryrefslogtreecommitdiff
path: root/test/storage.test
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2024-10-09 20:59:35 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2024-10-09 20:59:35 +0200
commit4a45d282d9b76d5858fe8df3dcd02b227e1e3f23 (patch)
tree96f6dca7665f0be409e5b7656c3d27213044cdd5 /test/storage.test
parent52c874ab42cd266d1b26ce1c045fcaf8eb410b32 (diff)
Handle unknown record item types
Changelog: Handle unknown record item types
Diffstat (limited to 'test/storage.test')
-rw-r--r--test/storage.test22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/storage.test b/test/storage.test
index 2a53bb8..db9e0a1 100644
--- a/test/storage.test
+++ b/test/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")