Skip to content

Commit 9440921

Browse files
committed
fix actual value in test
1 parent c2c1d12 commit 9440921

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

memmap_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ func TestMemFsMkdirAllMode(t *testing.T) {
451451
t.Error("/a: mode is not directory")
452452
}
453453
if !info.ModTime().After(time.Now().Add(-1 * time.Hour)) {
454-
t.Errorf("/a: mod time not set, got %s", info.Mode())
454+
t.Errorf("/a: mod time not set, got %s", info.ModTime())
455455
}
456456
if info.Mode() != os.FileMode(os.ModeDir|0755) {
457457
t.Errorf("/a: wrong permissions, expected drwxr-xr-x, got %s", info.Mode())
@@ -467,7 +467,7 @@ func TestMemFsMkdirAllMode(t *testing.T) {
467467
t.Errorf("/a/b: wrong permissions, expected drwxr-xr-x, got %s", info.Mode())
468468
}
469469
if !info.ModTime().After(time.Now().Add(-1 * time.Hour)) {
470-
t.Errorf("/a/b: mod time not set, got %s", info.Mode())
470+
t.Errorf("/a/b: mod time not set, got %s", info.ModTime())
471471
}
472472
info, err = fs.Stat("/a/b/c")
473473
if err != nil {
@@ -480,7 +480,7 @@ func TestMemFsMkdirAllMode(t *testing.T) {
480480
t.Errorf("/a/b/c: wrong permissions, expected drwxr-xr-x, got %s", info.Mode())
481481
}
482482
if !info.ModTime().After(time.Now().Add(-1 * time.Hour)) {
483-
t.Errorf("/a/b/c: mod time not set, got %s", info.Mode())
483+
t.Errorf("/a/b/c: mod time not set, got %s", info.ModTime())
484484
}
485485
}
486486

0 commit comments

Comments
 (0)