Skip to content

Commit 02faf3a

Browse files
author
Dean Karn
committed
one last check
1 parent 2a85746 commit 02faf3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

errors/retrier_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,12 @@ func TestRetrierEarlyReturn(t *testing.T) {
153153
Equal(t, isRetryableCount, 5)
154154

155155
// while here let's check the first test case again, `Retrier` should be a copy and original still intact.
156+
isRetryableCount = 0
156157
result = r.Do(context.Background(), func(ctx context.Context) Result[int, error] {
157158
return Err[int, error](io.EOF)
158159
})
159160
Equal(t, result.IsErr(), true)
160161
Equal(t, result.Err(), io.EOF)
161162
Equal(t, earlyReturnCount, 1)
163+
Equal(t, isRetryableCount, 0)
162164
}

0 commit comments

Comments
 (0)