From a5d3e7c8ca71b3c6e1dc2146cac8e39d7126d9b6 Mon Sep 17 00:00:00 2001 From: Hanno Hecker Date: Sun, 24 Jan 2016 08:02:52 +0100 Subject: [PATCH] fix for OsFs w/ lower timestamp resolution --- memmap_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/memmap_test.go b/memmap_test.go index 6e0f826..44d525b 100644 --- a/memmap_test.go +++ b/memmap_test.go @@ -241,8 +241,8 @@ func TestWriteCloseTime(t *testing.T) { time.Sleep(2 * time.Second) case "darwin": time.Sleep(1 * time.Second) - default: - time.Sleep(10 * time.Millisecond) + default: // depending on the FS, this may work with < 1 second, on my old ext3 it does not + time.Sleep(1 * time.Second) } _, err = f.Write([]byte("test"))