mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 09:32:29 +08:00
vfs: remove workaround Sleep() calls from tests
This commit is contained in:
parent
20f4fda3c9
commit
3eded3c4ac
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user