Improve testing output

This commit is contained in:
Steve Francia 2015-12-10 13:01:07 -05:00
parent 99f1ddeda3
commit 69df1e98f2
1 changed files with 3 additions and 3 deletions

View File

@ -404,13 +404,13 @@ func TestReaddirnames(t *testing.T) {
root, err := fs.Open(tDir) root, err := fs.Open(tDir)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(fs.Name(), tDir, err)
} }
defer root.Close() defer root.Close()
namesRoot, err := root.Readdirnames(-1) namesRoot, err := root.Readdirnames(-1)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(fs.Name(), namesRoot, err)
} }
sub, err := fs.Open(testSubDir) sub, err := fs.Open(testSubDir)
@ -421,7 +421,7 @@ func TestReaddirnames(t *testing.T) {
namesSub, err := sub.Readdirnames(-1) namesSub, err := sub.Readdirnames(-1)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(fs.Name(), namesSub, err)
} }
findNames(fs, t, tDir, testSubDir, namesRoot, namesSub) findNames(fs, t, tDir, testSubDir, namesRoot, namesSub)