From 6d3df6f172540ee6b4b09edfea0bda70d27b90d0 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 28 Nov 2017 20:38:57 +0000 Subject: [PATCH] cmount: make tests more reliable on Windows --- cmd/mountlib/mounttest/read.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/mountlib/mounttest/read.go b/cmd/mountlib/mounttest/read.go index 544357927..8012e976b 100644 --- a/cmd/mountlib/mounttest/read.go +++ b/cmd/mountlib/mounttest/read.go @@ -5,6 +5,7 @@ import ( "io/ioutil" "os" "testing" + "time" "github.com/stretchr/testify/assert" ) @@ -31,6 +32,7 @@ func TestReadByByte(t *testing.T) { assert.NoError(t, err) } + time.Sleep(100 * time.Millisecond) // FIXME wait for Release run.rm(t, "testfile") }