From 697a9fe03411da6797de15095db8854912a8c4ec Mon Sep 17 00:00:00 2001 From: Josh Wolf Date: Thu, 9 Dec 2021 11:26:48 -0700 Subject: [PATCH] ensure each copy test is independent --- pkg/store/store_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/store/store_test.go b/pkg/store/store_test.go index 68166ae..53133fd 100644 --- a/pkg/store/store_test.go +++ b/pkg/store/store_test.go @@ -204,6 +204,10 @@ func TestStore_CopyAll(t *testing.T) { } else if len(descs) != len(tt.args.refs) { t.Errorf("CopyAll() expected to push %d descriptors, but only pushed %d", len(descs), len(tt.args.refs)) } + + if err := s.Flush(ctx); err != nil { + t.Fatal(err) + } }) } }