From c6d01458b4545500a964491c2602da3c3079bfc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Tue, 9 Aug 2022 22:11:08 +0200 Subject: Stored roots lookup --- test/storage.test | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test/storage.test') diff --git a/test/storage.test b/test/storage.test index 2ce87d5..10f5d2c 100644 --- a/test/storage.test +++ b/test/storage.test @@ -45,6 +45,18 @@ test: send to p1 "stored-generation $r4" expect from p1 /stored-generation $r4 2/ + send to p1 "stored-roots $r1" + expect from p1 /stored-roots $r1 $r1/ + + send to p1 "stored-roots $r2" + expect from p1 /stored-roots $r2 $r1/ + + send to p1 "stored-roots $r3" + expect from p1 /stored-roots $r3 $r1/ + + send to p1 "stored-roots $r4" + expect from p1 /stored-roots $r4 $r1/ + # Attach second root send to p1: "store rec" @@ -73,3 +85,9 @@ test: send to p1 "stored-generation $r2_2" expect from p1 /stored-generation $r2_2 1/ + + send to p1 "stored-roots $r2_3" + expect from p1 /stored-roots $r2_3 $r2_1 $r1/ + + send to p1 "stored-roots $r2_2" + expect from p1 /stored-roots $r2_2 $r2_1/ -- cgit v1.2.3