mirror of
https://github.com/restic/restic.git
synced 2025-02-08 07:27:27 +00:00
fs: Update directory check in reader tests (#2063)
This commit is contained in:
parent
cf3fc2a5b1
commit
5096f3b491
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue