"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
fstests: In TestFsPutError reliably provoke test failure
Nick Craig-Wood58339a5cb6b1
diff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.goindex 9a4f180b5..4f2738860 100644--- a/fstest/fstests/fstests.go+++ b/fstest/fstests/fstests.go@@ -382,13 +382,14 @@ func Run(t *testing.T, opt *Opt) {t.Run("TestFsPutError", func(t *testing.T) {skipIfNotOk(t)- // Read 50 bytes then produce an error- contents := fstest.RandomString(50)+ const N = 5 * 1024+ // Read N bytes then produce an error+ contents := fstest.RandomString(N)buf := bytes.NewBufferString(contents)er := &errorReader{errors.New("potato")}in := io.MultiReader(buf, er)- obji := object.NewStaticObjectInfo(file2.Path, file2.ModTime, 100, true, nil, nil)+ obji := object.NewStaticObjectInfo(file2.Path, file2.ModTime, 2*N, true, nil, nil)_, err := remote.Put(in, obji)// assert.Nil(t, obj) - FIXME some remotes return the object even on nilassert.NotNil(t, err)