mirror of https://github.com/restic/restic.git
fs: Update directory check in reader tests (#2063)
This commit is contained in:
parent
cf3fc2a5b1
commit
5096f3b491
|
@ -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) {
|
func checkFileInfo(t testing.TB, fi os.FileInfo, filename string, modtime time.Time, mode os.FileMode, isdir bool) {
|
||||||
if fi.IsDir() {
|
if fi.IsDir() != isdir {
|
||||||
t.Errorf("IsDir returned true, want false")
|
t.Errorf("IsDir returned %t, want %t", fi.IsDir(), isdir)
|
||||||
}
|
}
|
||||||
|
|
||||||
if fi.Mode() != mode {
|
if fi.Mode() != mode {
|
||||||
|
|
Loading…
Reference in New Issue