fstests: fix test crash if NewFs fails
This commit is contained in:
parent
d85b9bc9d6
commit
f1ffe8e309
1 changed files with 1 additions and 0 deletions
|
@ -976,6 +976,7 @@ func Run(t *testing.T, opt *Opt) {
|
|||
file2Copy.Path = "z.txt"
|
||||
file2Copy.WinPath = ""
|
||||
fileRemote, err := fs.NewFs(remoteName)
|
||||
require.NotNil(t, fileRemote)
|
||||
assert.Equal(t, fs.ErrorIsFile, err)
|
||||
fstest.CheckListing(t, fileRemote, []fstest.Item{file2Copy})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue