Skip to content

Commit

Permalink
test: fix assertion linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Felixoid committed Feb 9, 2022
1 parent 0de20e8 commit 833474f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions glob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,11 +453,13 @@ func TestGlob(t *testing.T) { // nolint:funlen

t.Run("symlinks", func(t *testing.T) {
t.Parallel()
testFS := testFs(t, []string{
var fsPath string
if testFS, ok := testFs(t, []string{
"./a/file",
}, nil).(testfs.FS)
}, nil).(testfs.FS); ok {
fsPath = testFS.Path()
}

fsPath := testFS.Path()
workingSymlink := filepath.Join(fsPath, "b")
brokenSymlink := filepath.Join(fsPath, "c")
err := os.Symlink("a", workingSymlink)
Expand Down

0 comments on commit 833474f

Please sign in to comment.