mirror of
https://github.com/rclone/rclone.git
synced 2025-06-26 15:01:41 +02:00
fstests: fix test crash if NewFs fails
This commit is contained in:
parent
d85b9bc9d6
commit
f1ffe8e309
@ -976,6 +976,7 @@ func Run(t *testing.T, opt *Opt) {
|
|||||||
file2Copy.Path = "z.txt"
|
file2Copy.Path = "z.txt"
|
||||||
file2Copy.WinPath = ""
|
file2Copy.WinPath = ""
|
||||||
fileRemote, err := fs.NewFs(remoteName)
|
fileRemote, err := fs.NewFs(remoteName)
|
||||||
|
require.NotNil(t, fileRemote)
|
||||||
assert.Equal(t, fs.ErrorIsFile, err)
|
assert.Equal(t, fs.ErrorIsFile, err)
|
||||||
fstest.CheckListing(t, fileRemote, []fstest.Item{file2Copy})
|
fstest.CheckListing(t, fileRemote, []fstest.Item{file2Copy})
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user