Skip to content

Commit

Permalink
fs: Update directory check in reader tests (restic#2063)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrmcnu authored and fd0 committed May 8, 2019
1 parent cf3fc2a commit 5096f3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/fs/fs_reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ func verifyDirectoryContentsFI(t testing.TB, fs FS, dir string, want []os.FileIn
}

func checkFileInfo(t testing.TB, fi os.FileInfo, filename string, modtime time.Time, mode os.FileMode, isdir bool) {
if fi.IsDir() {
t.Errorf("IsDir returned true, want false")
if fi.IsDir() != isdir {
t.Errorf("IsDir returned %t, want %t", fi.IsDir(), isdir)
}

if fi.Mode() != mode {
Expand Down

0 comments on commit 5096f3b

Please sign in to comment.