"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
Stop overwriting global remote in tests
Nick Craig-Wood80c044f2d3a5
diff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.goindex efda48096..b6a572247 100644--- a/fstest/fstests/fstests.go+++ b/fstest/fstests/fstests.go@@ -547,13 +547,14 @@ func TestObjectString(t *testing.T) {func TestObjectFs(t *testing.T) {skipIfNotOk(t)obj := findObject(t, file1.Path)- if obj.Fs() != remote {+ testRemote := remote+ if obj.Fs() != testRemote {// Check to see if this wraps something else- if unwrap, ok := remote.(fs.UnWrapper); ok {- remote = unwrap.UnWrap()+ if unwrap, ok := testRemote.(fs.UnWrapper); ok {+ testRemote = unwrap.UnWrap()}}- assert.Equal(t, obj.Fs(), remote)+ assert.Equal(t, obj.Fs(), testRemote)}// TestObjectRemote tests the Remote is correct