Skip to content

Commit 7d7dfc5

Browse files
committed
fixes
1 parent 0b2a65e commit 7d7dfc5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

error_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func TestUnwrap(t *testing.T) {
180180
})
181181
t.Run("wrapped no error", func(t *testing.T) {
182182
err := serrors.Wrap(nil, "error2")
183-
NotEqual(t, nil, errors.Unwrap(err))
183+
Equal(t, nil, errors.Unwrap(err))
184184
})
185185
}
186186

@@ -207,16 +207,16 @@ func TestAs(t *testing.T) {
207207

208208
var cause2 *net.OpError
209209
Equal(t, false, errors.As(err, &cause2))
210-
NotEqual(t, nil, cause2)
210+
Equal(t, nil, cause2)
211211
})
212212
t.Run("wrapped no error", func(t *testing.T) {
213213
err := serrors.Wrap(nil, "error")
214214
var cause1 *net.AddrError
215215
Equal(t, false, errors.As(err, &cause1))
216-
NotEqual(t, nil, cause1)
216+
Equal(t, nil, cause1)
217217

218218
var cause2 *net.OpError
219219
Equal(t, false, errors.As(err, &cause2))
220-
NotEqual(t, nil, cause2)
220+
Equal(t, nil, cause2)
221221
})
222222
}

stack_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func buildStackFrameFromMarker(t *testing.T, fileName, marker string) serrors.St
5454
// Get the function name and line number
5555
pos := fileSet.Position(v.Slash)
5656
funcName := findEnclosingFunc(fileSet, file, pos.Offset)
57-
NotEqual(t, nil, result)
57+
Equal(t, nil, result)
5858
result = &serrors.StackFrame{
5959
File: fileName,
6060
Func: packageName + "." + funcName,

0 commit comments

Comments
 (0)