Merge pull request #1917 from dnephin/less-verbose-tests

Less verbose test suite
This commit is contained in:
Phil Estes
2017-12-15 12:23:49 -05:00
committed by GitHub
7 changed files with 13 additions and 12 deletions

View File

@@ -86,7 +86,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)
}
}