Skip to content

Commit

Permalink
fix: change error check to use errors.Is
Browse files Browse the repository at this point in the history
  • Loading branch information
josestg committed Jul 29, 2023
1 parent fbd172b commit 326e189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goval_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func TestExecute(t *testing.T) {
goval.Bind[int](8, goval.Number[int]().Required().With(customValidator)),
)

if err != internalError {
if !errors.Is(err, internalError) {
t.Fatalf("expect validation error is discarded and internal error is returned; but got %v", err)
}
})
Expand Down

0 comments on commit 326e189

Please sign in to comment.