mirror of https://github.com/spf13/afero.git
Improve testing output
This commit is contained in:
parent
99f1ddeda3
commit
69df1e98f2
|
@ -404,13 +404,13 @@ func TestReaddirnames(t *testing.T) {
|
|||
|
||||
root, err := fs.Open(tDir)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
t.Fatal(fs.Name(), tDir, err)
|
||||
}
|
||||
defer root.Close()
|
||||
|
||||
namesRoot, err := root.Readdirnames(-1)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
t.Fatal(fs.Name(), namesRoot, err)
|
||||
}
|
||||
|
||||
sub, err := fs.Open(testSubDir)
|
||||
|
@ -421,7 +421,7 @@ func TestReaddirnames(t *testing.T) {
|
|||
|
||||
namesSub, err := sub.Readdirnames(-1)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
t.Fatal(fs.Name(), namesSub, err)
|
||||
}
|
||||
|
||||
findNames(fs, t, tDir, testSubDir, namesRoot, namesSub)
|
||||
|
|
Loading…
Reference in New Issue