Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

vfs: remove workaround Sleep() calls from tests

Nick Craig-Wood3eded3c4ac4e
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")
}