1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-01 08:03:26 +00:00

mounttest: wait for Release after every Read to stop using in use files under Windows

This commit is contained in:
Nick Craig-Wood
2017-11-19 19:58:09 +00:00
parent 8e2213fbbd
commit af50f31f7d
2 changed files with 5 additions and 6 deletions

View File

@@ -325,6 +325,7 @@ func (r *Run) readFile(t *testing.T, filepath string) string {
filepath = r.path(filepath)
result, err := ioutil.ReadFile(filepath)
require.NoError(t, err)
time.Sleep(100 * time.Millisecond) // FIXME wait for Release
return string(result)
}