From 5ae58def2cd9e781af332a57266ae92385a6fb8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Wed, 9 Oct 2024 20:59:35 +0200 Subject: (test) Handle unknown record item types Changelog: Handle unknown record item types --- storage.test | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'storage.test') 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") -- cgit v1.2.3