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

fstests: Fix TestObjectRemove failures

Nick Craig-Wood32e02bd367d5
diff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.go
index c0e19e0d3..91b281fce 100644
--- a/fstest/fstests/fstests.go
+++ b/fstest/fstests/fstests.go
@@ -1010,7 +1010,8 @@ func TestObjectRemove(t *testing.T) {
obj := findObject(t, file1.Path)
err := obj.Remove()
require.NoError(t, err)
- fstest.CheckListing(t, remote, []fstest.Item{file2})
+ // check listing without modtime as TestPublicLink may change the modtime
+ fstest.CheckListingWithPrecision(t, remote, []fstest.Item{file2}, nil, fs.ModTimeNotSupported)
}
// TestFsPutStream tests uploading files when size is not known in advance