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 tests not to upload a 0 length file

Nick Craig-Woodb5bb4c2a2152
diff --git a/vfs/read_write_test.go b/vfs/read_write_test.go
index 3d1df648a..4bdfca579 100644
--- a/vfs/read_write_test.go
+++ b/vfs/read_write_test.go
@@ -620,6 +620,8 @@ func TestCacheRename(t *testing.T) {
h, err := vfs.OpenFile("rename_me", os.O_WRONLY|os.O_CREATE, 0777)
require.NoError(t, err)
+ _, err = h.WriteString("hello")
+ require.NoError(t, err)
fh, ok := h.(*RWFileHandle)
require.True(t, ok)