"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: shut down test remotes when finished with them
Nick Craig-Wood4db281793256
diff --git a/fstest/fstest.go b/fstest/fstest.goindex 2267b0b43..ebad580a7 100644--- a/fstest/fstest.go+++ b/fstest/fstest.go@@ -476,6 +476,14 @@ func RandomRemote() (fs.Fs, string, func(), error) {fs.Logf(nil, "Failed to purge %v: %v", parentRemote, err)}}+ // The remote isn't in the fs cache so release its resources+ // (e.g. pooled connections) here rather than letting them+ // pile up until they time out.+ if do := remote.Features().Shutdown; do != nil {+ if err := do(context.Background()); err != nil {+ fs.Logf(nil, "Failed to shutdown %v: %v", remote, err)+ }+ }}return remote, remoteName, finalise, nil