From b49821956ac621387d46dbe9bfe08ced0f9dd3b9 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 7 Jun 2017 14:08:46 +0100 Subject: [PATCH] Fix copyto/moveto test error (see #1261) --- fs/operations_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/operations_test.go b/fs/operations_test.go index e1def6214..e9dbd84e5 100644 --- a/fs/operations_test.go +++ b/fs/operations_test.go @@ -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)