fstests: fix test crash if NewFs fails

This commit is contained in:
Nick Craig-Wood 2018-05-10 16:21:57 +01:00
parent d85b9bc9d6
commit f1ffe8e309

View file

@ -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})
})