From f74cea71dd24d2cf863420f3085651c0c6da7cea Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Tue, 22 Aug 2017 17:14:06 -0700 Subject: [PATCH] Update basic test to allow being run in parallel on client The basic test does an assert on the existing snapshots. Update the check just to assert the expected snapshots were found during the walk. Signed-off-by: Derek McGowan --- snapshot/testsuite/testsuite.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/snapshot/testsuite/testsuite.go b/snapshot/testsuite/testsuite.go index df934c7f8..e588ee374 100644 --- a/snapshot/testsuite/testsuite.go +++ b/snapshot/testsuite/testsuite.go @@ -190,7 +190,14 @@ func checkSnapshotterBasic(ctx context.Context, t *testing.T, snapshotter snapsh return nil })) - assert.Equal(t, expected, walked) + for ek, ev := range expected { + av, ok := walked[ek] + if !ok { + t.Errorf("Missing stat for %v", ek) + continue + } + assert.Equal(t, ev, av) + } nextnext := filepath.Join(work, "nextnextlayer") if err := os.MkdirAll(nextnext, 0777); err != nil {