mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 07:29:35 +01:00
serve sftp: fix race in the tests #4171
This commit is contained in:
parent
160c97da13
commit
117ff1d781
@ -29,8 +29,6 @@ type StartFn func(f fs.Fs) (configmap.Simple, func())
|
||||
// run runs the server then runs the unit tests for the remote against
|
||||
// it.
|
||||
func run(t *testing.T, name string, start StartFn, useProxy bool) {
|
||||
fstest.Initialise()
|
||||
|
||||
fremote, _, clean, err := fstest.RandomRemote()
|
||||
assert.NoError(t, err)
|
||||
defer clean()
|
||||
@ -98,6 +96,7 @@ func run(t *testing.T, name string, start StartFn, useProxy bool) {
|
||||
// Run runs the server then runs the unit tests for the remote against
|
||||
// it.
|
||||
func Run(t *testing.T, name string, start StartFn) {
|
||||
fstest.Initialise()
|
||||
t.Run("Normal", func(t *testing.T) {
|
||||
run(t, name, start, false)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user