From aeffc86033f5ee4b2783ef377df09ada8695454c Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Thu, 28 Sep 2023 08:38:38 +0800 Subject: [PATCH] check for recovery file --- test_helpers/builder.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test_helpers/builder.go b/test_helpers/builder.go index dc7fd34..44f46bf 100644 --- a/test_helpers/builder.go +++ b/test_helpers/builder.go @@ -101,10 +101,8 @@ func RunStateSnapshot( if build() == nil { t.Fatal("expected an error") } + require.FileExists(t, recoveryFile) } - // Ensure we don't exceed the expected number of nodes. If we do, it implies the - // failed attempt got further than intended, and we have duplicates. - // ipldAppender = failingSyncedAppender(&iplds, len(test.Expected.IPLDs)) ipldAppender = failingSyncedAppender(&iplds, -1) if err := build(); err != nil { t.Fatal(err)