mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 22:02:15 +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)
|
filepath = r.path(filepath)
|
||||||
result, err := run.os.ReadFile(filepath)
|
result, err := run.os.ReadFile(filepath)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
time.Sleep(100 * time.Millisecond) // FIXME wait for Release
|
|
||||||
return string(result)
|
return string(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
@ -31,7 +30,6 @@ func TestReadByByte(t *testing.T) {
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
time.Sleep(100 * time.Millisecond) // FIXME wait for Release
|
|
||||||
run.rm(t, "testfile")
|
run.rm(t, "testfile")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user