Skip to content

Commit 26a75c8

Browse files
committed
Use errors.Is()
1 parent fdb5edd commit 26a75c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/error_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func TestServiceErrorUnwrap(t *testing.T) {
4444
func TestAsError(t *testing.T) {
4545
err := MissingFieldError("foo", "bar")
4646
se := asError(err)
47-
if err != se {
47+
if !errors.Is(err, se) {
4848
t.Errorf("got %#v, want %#v", se, err)
4949
}
5050
}

0 commit comments

Comments
 (0)