mirror of
https://github.com/rclone/rclone.git
synced 2025-08-12 06:59:29 +02:00
s3: work around eventual consistency in bucket creation
Deleting a bucket then testing its existence can give the wrong result. Work around by keeping a flag as to whether we have deleted the bucket.
This commit is contained in:
@ -715,6 +715,7 @@ func testServerSideMove(t *testing.T, r *Run, fremoteMove fs.Fs, withFilter bool
|
||||
|
||||
// Purge the original before moving
|
||||
require.NoError(t, fs.Purge(r.fremote))
|
||||
fstest.CheckItems(t, r.fremote)
|
||||
|
||||
// Move it back again, dst does not exist this time
|
||||
fs.Stats.ResetCounters()
|
||||
|
Reference in New Issue
Block a user