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

vfs: fix integration test failures

Nick Craig-Wood0010090d0517
diff --git a/vfs/dir_test.go b/vfs/dir_test.go
index 69e45c269..5a4b63e04 100644
--- a/vfs/dir_test.go
+++ b/vfs/dir_test.go
@@ -658,10 +658,14 @@ func TestDirFileOpen(t *testing.T) {
}
func TestDirEntryModTimeInvalidation(t *testing.T) {
- if runtime.GOOS == "windows" {
+ r, vfs := newTestVFS(t)
+ features := r.Fremote.Features()
+ if !features.DirModTimeUpdatesOnWrite {
+ t.Skip("Need DirModTimeUpdatesOnWrite")
+ }
+ if features.IsLocal && runtime.GOOS == "windows" {
t.Skip("dirent modtime is unreliable on Windows filesystems")
}
- r, vfs := newTestVFS(t)
// Needs to be less than 2x the wait time below, othewrwise the entry
// gets cleared out before it had a chance to be updated.