From 0e2cf67ac39748892ffa0800fcf6dfc216fdcf2a Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Thu, 11 Aug 2016 22:23:26 -0400 Subject: [PATCH] tar_test: don't check for extra/missing when validating relative to "." right now, Check() doesn't check for missing/extra files. So, for the sake of this test, we don't want to do this check for extra/missing files when we validate the validation manifest produced from a tar against the "." root directory (which would be /testdata). Signed-off-by: Stephen Chung --- tar_test.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tar_test.go b/tar_test.go index 5f547a7..3b5588e 100644 --- a/tar_test.go +++ b/tar_test.go @@ -276,12 +276,6 @@ func TestTreeTraversal(t *testing.T) { for _, f := range res.Failures { t.Errorf(f.String()) } - for _, e := range res.Extra { - t.Errorf("%s extra not expected", e.Name) - } - for _, m := range res.Missing { - t.Errorf("%s missing not expected", m.Name) - } } // Now test an archive that requires placeholder directories, i.e, there are @@ -311,12 +305,6 @@ func TestTreeTraversal(t *testing.T) { for _, f := range res.Failures { t.Errorf(f.String()) } - for _, e := range res.Extra { - t.Errorf("%s extra not expected", e.Name) - } - for _, m := range res.Missing { - t.Errorf("%s missing not expected", m.Name) - } } }