fstest/test_all: make -clean work better with google cloud storage

This commit is contained in:
Nick Craig-Wood 2018-04-06 14:54:33 +01:00
parent 0cb5c4aa73
commit 92cfb57fbd

View File

@ -272,6 +272,7 @@ func (t *test) cleanFs() error {
remote := dir.Remote()
if fstest.MatchTestRemote.MatchString(remote) {
log.Printf("Purging %s%s", t.remote, remote)
time.Sleep(2500 * time.Millisecond) // sleep to rate limit bucket deletes for gcs
dir, err := fs.NewFs(t.remote + remote)
if err != nil {
return err