From 94409215e40b4f08b4f286b854adf4285cea284c Mon Sep 17 00:00:00 2001 From: KastenMike <93532247+KastenMike@users.noreply.github.com> Date: Mon, 10 Jan 2022 12:00:43 +0100 Subject: [PATCH] fix actual value in test --- memmap_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/memmap_test.go b/memmap_test.go index 819def8..881a61b 100644 --- a/memmap_test.go +++ b/memmap_test.go @@ -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()) @@ -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 { @@ -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()) } }