mirror of
https://github.com/rclone/rclone.git
synced 2026-01-04 01:23:24 +00:00
Fix copyto/moveto test error (see #1261)
This commit is contained in:
@@ -801,7 +801,7 @@ func TestMoveFile(t *testing.T) {
|
||||
fstest.CheckItems(t, r.flocal)
|
||||
fstest.CheckItems(t, r.fremote, file2)
|
||||
|
||||
err = fs.MoveFile(r.fremote, r.flocal, file2.Path, file2.Path)
|
||||
err = fs.MoveFile(r.fremote, r.fremote, file2.Path, file2.Path)
|
||||
require.NoError(t, err)
|
||||
fstest.CheckItems(t, r.flocal)
|
||||
fstest.CheckItems(t, r.fremote, file2)
|
||||
@@ -827,7 +827,7 @@ func TestCopyFile(t *testing.T) {
|
||||
fstest.CheckItems(t, r.flocal, file1)
|
||||
fstest.CheckItems(t, r.fremote, file2)
|
||||
|
||||
err = fs.CopyFile(r.fremote, r.flocal, file2.Path, file2.Path)
|
||||
err = fs.CopyFile(r.fremote, r.fremote, file2.Path, file2.Path)
|
||||
require.NoError(t, err)
|
||||
fstest.CheckItems(t, r.flocal, file1)
|
||||
fstest.CheckItems(t, r.fremote, file2)
|
||||
|
||||
Reference in New Issue
Block a user