Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

operations: fix eventual consistency in TestParseSumFile test

yuval-cloudinary5151a663f04a
diff --git a/fs/operations/check_test.go b/fs/operations/check_test.go
index 82ae51e43..cf499dd96 100644
--- a/fs/operations/check_test.go
+++ b/fs/operations/check_test.go
@@ -309,8 +309,7 @@ func TestParseSumFile(t *testing.T) {
}
_ = r.WriteObject(ctx, sumFile, data.String(), t1)
- file, err := r.Fremote.NewObject(ctx, sumFile)
- assert.NoError(t, err)
+ file := fstest.NewObject(ctx, t, r.Fremote, sumFile)
sums, err := operations.ParseSumFile(ctx, file)
assert.NoError(t, err)