"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
Increase retries for eventual consistency in tests
Nick Craig-Woodc270c1c80cfa
diff --git a/fstest/fstest.go b/fstest/fstest.goindex d1b2c7520..458af2c41 100644--- a/fstest/fstest.go+++ b/fstest/fstest.go@@ -121,7 +121,8 @@ func CheckListingWithPrecision(t *testing.T, f fs.Fs, items []Item, precision tiis := NewItems(items)oldErrors := fs.Stats.GetErrors()var objs []fs.Object- for i := 1; i <= 5; i++ {+ const retries = 10+ for i := 1; i <= retries; i++ {objs = nilfor obj := range f.List() {objs = append(objs, obj)@@ -129,7 +130,7 @@ func CheckListingWithPrecision(t *testing.T, f fs.Fs, items []Item, precision tiif len(objs) == len(items) {break}- t.Logf("Sleeping for 1 second for list eventual consistency: %d/5", i)+ t.Logf("Sleeping for 1 second for list eventual consistency: %d/%d", i, retries)time.Sleep(1 * time.Second)}for _, obj := range objs {