"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
fstest: Wait for longer if neccessary in TestFsChangeNotify
Nick Craig-Wood141c13381858
diff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.goindex 8222947e4..972c414ca 100644--- a/fstest/fstests/fstests.go+++ b/fstest/fstests/fstests.go@@ -1035,7 +1035,14 @@ func Run(t *testing.T, opt *Opt) {objs = append(objs, o)}- time.Sleep(3 * time.Second)+ // Wait a little while for the changes to come in+ for tries := 1; tries < 10; tries++ {+ if len(dirChanges) == 3 && len(objChanges) == 3 {+ break+ }+ t.Logf("Try %d/10 waiting for dirChanges and objChanges", tries)+ time.Sleep(3 * time.Second)+ }assert.Equal(t, []string{"dir/subdir1", "dir/subdir3", "dir/subdir2"}, dirChanges)assert.Equal(t, []string{"dir/file2", "dir/file4", "dir/file3"}, objChanges)