mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 09:11:11 +08:00
vfs: fix tests not to upload a 0 length file
Some remotes can't upload 0 length files, so this fixes the TestCacheRename test so that it writes something to the file.
This commit is contained in:
parent
479c803fd9
commit
b5bb4c2a21
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user