Skip to content

Commit 7234b51

Browse files
committed
ErrResetNotSupported added
1 parent 47b0412 commit 7234b51

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

enrchan_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ func TestEnrChan_Reset(t *testing.T) {
119119
enr.Reset()
120120
return nil
121121
}()
122-
if !errors.Is(gotErrPanic, ErrResetNotSupported) {
123-
t.Errorf("EnrChan_Reset() panic = '%v', want '%v'", gotErrPanic, ErrResetNotSupported)
122+
want := ErrResetNotSupported
123+
if !errors.Is(gotErrPanic, want) {
124+
t.Errorf("EnrChan_Reset() panic = '%v', want '%v'", gotErrPanic, want)
124125
}
125126
})
126127
}

0 commit comments

Comments
 (0)