Skip to content

Commit

Permalink
fix(test): correct assertion message (#1454)
Browse files Browse the repository at this point in the history
The current message is misleading. It states the opposite of what the
assertion is checking for.
  • Loading branch information
chrisHchen authored Jul 30, 2024
1 parent f95879b commit 3f27eb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func TestOpenFails(t *testing.T) {

for _, tt := range tests {
_, cleanup, err := Open(tt.paths...)
require.Nil(t, cleanup, "Cleanup function should never be nil")
require.Nil(t, cleanup, "Cleanup function should be nil")
assert.Error(t, err, "Open with invalid URL should fail.")
}
}
Expand Down

0 comments on commit 3f27eb9

Please sign in to comment.