"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
Attempt to make async buffer test more reliable
Nick Craig-Woodae9f8304fabe
diff --git a/fs/buffer_test.go b/fs/buffer_test.goindex 83782b086..936ba39fa 100644--- a/fs/buffer_test.go+++ b/fs/buffer_test.go@@ -248,10 +248,12 @@ func testAsyncReaderClose(t *testing.T, writeto bool) {var copyN int64var copyErr errorvar wg sync.WaitGroup+ started := make(chan struct{})wg.Add(1)go func() {defer wg.Done()- if true {+ close(started)+ if writeto {// exercise the WriteTo pathcopyN, copyErr = a.WriteTo(ioutil.Discard)} else {@@ -268,6 +270,7 @@ func testAsyncReaderClose(t *testing.T, writeto bool) {}}()// Do some copying+ <-startedtime.Sleep(100 * time.Millisecond)// Abandon the copya.Abandon()