From 3eded3c4ac4ea5050775dedb11734016ba48e559 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sun, 21 Jun 2020 13:03:16 +0100 Subject: [PATCH] vfs: remove workaround Sleep() calls from tests --- vfs/vfstest/fs.go | 1 - vfs/vfstest/read.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/vfs/vfstest/fs.go b/vfs/vfstest/fs.go index b4ac33537..11be32a34 100644 --- a/vfs/vfstest/fs.go +++ b/vfs/vfstest/fs.go @@ -419,7 +419,6 @@ func (r *Run) readFile(t *testing.T, filepath string) string { filepath = r.path(filepath) result, err := run.os.ReadFile(filepath) require.NoError(t, err) - time.Sleep(100 * time.Millisecond) // FIXME wait for Release return string(result) } diff --git a/vfs/vfstest/read.go b/vfs/vfstest/read.go index cfa905f72..469c5459f 100644 --- a/vfs/vfstest/read.go +++ b/vfs/vfstest/read.go @@ -4,7 +4,6 @@ import ( "io" "io/ioutil" "testing" - "time" "github.com/stretchr/testify/assert" ) @@ -31,7 +30,6 @@ func TestReadByByte(t *testing.T) { assert.NoError(t, err) } - time.Sleep(100 * time.Millisecond) // FIXME wait for Release run.rm(t, "testfile") }