"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
googlecloudstorage: fix rateLimitExceeded error on bisync tests
nielashbe73a10a97ba
diff --git a/cmd/bisync/bisync_test.go b/cmd/bisync/bisync_test.goindex 0bb5e47b3..2cee02f28 100644--- a/cmd/bisync/bisync_test.go+++ b/cmd/bisync/bisync_test.go@@ -981,17 +981,23 @@ func (b *bisyncTest) checkPreReqs(ctx context.Context, opt *bisync.Options) (conobjinfo := object.NewStaticObjectInfo("modtime_write_test", initDate, int64(len("modtime_write_test")), true, nil, nil)obj, err := f.Put(ctx, in, objinfo)require.NoError(b.t, err)+ if !f.Features().IsLocal {+ time.Sleep(time.Second) // avoid GoogleCloudStorage Error 429 rateLimitExceeded+ }err = obj.SetModTime(ctx, initDate)if err == fs.ErrorCantSetModTime {- if b.testCase != "nomodtime" {- b.t.Skip("skipping test as at least one remote does not support setting modtime")- }+ b.t.Skip("skipping test as at least one remote does not support setting modtime")+ }+ if !f.Features().IsLocal {+ time.Sleep(time.Second) // avoid GoogleCloudStorage Error 429 rateLimitExceeded}err = obj.Remove(ctx)require.NoError(b.t, err)}- testSetModtime(b.fs1)- testSetModtime(b.fs2)+ if b.testCase != "nomodtime" {+ testSetModtime(b.fs1)+ testSetModtime(b.fs2)+ }if b.testCase == "normalization" || b.testCase == "extended_char_paths" || b.testCase == "extended_filenames" {// test whether remote is capable of running test