Skip to content

Commit

Permalink
checks/test: make timer big enough for context cancel to be picked up
Browse files Browse the repository at this point in the history
  • Loading branch information
nadiamoe authored and Ro Santalla committed May 24, 2024
1 parent c7868fc commit 67934ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/checks/checks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ func TestHandleError(t *testing.T) {
ctx, cancel := context.WithCancel(ctx)
cancel()

backoff := testBackoff(100)
backoff := testBackoff(time.Second)
done, err := handleError(ctx, logger, &backoff, false, errTransportClosing)
require.True(t, done)
require.ErrorIs(t, err, context.Canceled)
Expand Down

0 comments on commit 67934ee

Please sign in to comment.