Fix tests under Windows

This commit is contained in:
Nick Craig-Wood
2017-01-20 17:12:05 +00:00
parent 2abfae283c
commit 9fdeb82328
2 changed files with 21 additions and 12 deletions
+2
View File
@@ -432,6 +432,7 @@ func TestFsMove(t *testing.T) {
// check happy path, i.e. no naming conflicts when rename and move are two
// separate operations
file2Move.Path = "other.txt"
file2Move.WinPath = ""
src := findObject(t, file2.Path)
dst, err := doMove(src, file2Move.Path)
if err == fs.ErrorCantMove {
@@ -684,6 +685,7 @@ func TestFsIsFile(t *testing.T) {
remoteName := subRemoteName + "/" + file2.Path
file2Copy := file2
file2Copy.Path = "z.txt"
file2Copy.WinPath = ""
fileRemote, err := fs.NewFs(remoteName)
assert.Equal(t, fs.ErrorIsFile, err)
fstest.CheckListing(t, fileRemote, []fstest.Item{file2Copy})