Less verbose tests

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
Daniel Nephin
2017-12-13 20:30:31 -05:00
parent 03bc5e974d
commit 49fffe8ec7
7 changed files with 13 additions and 12 deletions

View File

@@ -85,7 +85,7 @@ func TestContent(t *testing.T) {
func TestContentWriter(t *testing.T) {
ctx, tmpdir, cs, cleanup := contentStoreEnv(t)
defer cleanup()
defer testutil.DumpDir(t, tmpdir)
defer testutil.DumpDirOnFailure(t, tmpdir)
if _, err := os.Stat(filepath.Join(tmpdir, "ingest")); os.IsNotExist(err) {
t.Fatal("ingest dir should be created", err)

View File

@@ -47,7 +47,7 @@ func makeTest(t *testing.T, name string, storeFn func(ctx context.Context, root
}
}()
defer testutil.DumpDir(t, tmpDir)
defer testutil.DumpDirOnFailure(t, tmpDir)
fn(ctx, t, cs)
}
}