From f1ffe8e3096f5b96079526e897cb5eacd3e7235f Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 10 May 2018 16:21:57 +0100 Subject: [PATCH] fstests: fix test crash if NewFs fails --- fstest/fstests/fstests.go | 1 + 1 file changed, 1 insertion(+) diff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.go index 961f861dd..d6ab1bf62 100644 --- a/fstest/fstests/fstests.go +++ b/fstest/fstests/fstests.go @@ -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}) })