Skip to content

Commit

Permalink
fix actual value in test
Browse files Browse the repository at this point in the history
  • Loading branch information
KastenMike committed Jan 10, 2022
1 parent c2c1d12 commit 9440921
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions memmap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ func TestMemFsMkdirAllMode(t *testing.T) {
t.Error("/a: mode is not directory")
}
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) {
t.Errorf("/a: wrong permissions, expected drwxr-xr-x, got %s", info.Mode())
Expand All @@ -467,7 +467,7 @@ func TestMemFsMkdirAllMode(t *testing.T) {
t.Errorf("/a/b: wrong permissions, expected drwxr-xr-x, got %s", info.Mode())
}
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")
if err != nil {
Expand All @@ -480,7 +480,7 @@ func TestMemFsMkdirAllMode(t *testing.T) {
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)) {
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())
}
}

Expand Down

0 comments on commit 9440921

Please sign in to comment.