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"))