Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Eun committed Jan 24, 2024
1 parent 730dd3e commit 0b2a65e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,7 @@ func TestAs(t *testing.T) {

var cause2 *net.OpError
Equal(t, false, errors.As(err, &cause2))
if cause2 != nil {
t.Fatal("expected not nil")
}
NotEqual(t, nil, cause2)
})
t.Run("wrapped no error", func(t *testing.T) {
err := serrors.Wrap(nil, "error")
Expand All @@ -218,7 +216,6 @@ func TestAs(t *testing.T) {
NotEqual(t, nil, cause1)

var cause2 *net.OpError

Equal(t, false, errors.As(err, &cause2))
NotEqual(t, nil, cause2)
})
Expand Down

0 comments on commit 0b2a65e

Please sign in to comment.