fix actual value in test

This commit is contained in:
KastenMike 2022-01-10 12:00:43 +01:00
parent c2c1d1206e
commit 94409215e4
1 changed files with 3 additions and 3 deletions

View File

@ -451,7 +451,7 @@ func TestMemFsMkdirAllMode(t *testing.T) {
t.Error("/a: mode is not directory") t.Error("/a: mode is not directory")
} }
if !info.ModTime().After(time.Now().Add(-1 * time.Hour)) { if !info.ModTime().After(time.Now().Add(-1 * time.Hour)) {
t.Errorf("/a: mod time not set, got %s", info.Mode()) t.Errorf("/a: mod time not set, got %s", info.ModTime())
} }
if info.Mode() != os.FileMode(os.ModeDir|0755) { if info.Mode() != os.FileMode(os.ModeDir|0755) {
t.Errorf("/a: wrong permissions, expected drwxr-xr-x, got %s", info.Mode()) t.Errorf("/a: wrong permissions, expected drwxr-xr-x, got %s", info.Mode())
@ -467,7 +467,7 @@ func TestMemFsMkdirAllMode(t *testing.T) {
t.Errorf("/a/b: wrong permissions, expected drwxr-xr-x, got %s", info.Mode()) t.Errorf("/a/b: wrong permissions, expected drwxr-xr-x, got %s", info.Mode())
} }
if !info.ModTime().After(time.Now().Add(-1 * time.Hour)) { if !info.ModTime().After(time.Now().Add(-1 * time.Hour)) {
t.Errorf("/a/b: mod time not set, got %s", info.Mode()) t.Errorf("/a/b: mod time not set, got %s", info.ModTime())
} }
info, err = fs.Stat("/a/b/c") info, err = fs.Stat("/a/b/c")
if err != nil { if err != nil {
@ -480,7 +480,7 @@ func TestMemFsMkdirAllMode(t *testing.T) {
t.Errorf("/a/b/c: wrong permissions, expected drwxr-xr-x, got %s", info.Mode()) t.Errorf("/a/b/c: wrong permissions, expected drwxr-xr-x, got %s", info.Mode())
} }
if !info.ModTime().After(time.Now().Add(-1 * time.Hour)) { if !info.ModTime().After(time.Now().Add(-1 * time.Hour)) {
t.Errorf("/a/b/c: mod time not set, got %s", info.Mode()) t.Errorf("/a/b/c: mod time not set, got %s", info.ModTime())
} }
} }