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:
Nick Craig-Wood
2017-06-29 12:26:14 +01:00
parent 479c5a514a
commit 54561fd2bc
2 changed files with 15 additions and 7 deletions

View File

@ -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()