Skip to content

Commit

Permalink
mapper_windows_test: assert.NotZero for nil check (#396)
Browse files Browse the repository at this point in the history
Follow up to #394, specifically [this comment][1].

  [1]: #394 (comment)
  • Loading branch information
abhinav committed Dec 10, 2023
1 parent 3263463 commit 4ca2606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapper_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestWindowsFileMapper(t *testing.T) {
p := mustNew(t, &cli)
_, err := p.Parse([]string{"testdata\\file.txt"})
assert.NoError(t, err)
assert.True(t, cli.File != nil, "File should not be nil")
assert.NotZero(t, cli.File, "File should not be nil")
_ = cli.File.Close()
_, err = p.Parse([]string{"testdata\\missing.txt"})
assert.Error(t, err)
Expand Down

0 comments on commit 4ca2606

Please sign in to comment.