Skip to content

Commit

Permalink
add comment as per review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xenowits committed Apr 12, 2023
1 parent 645f2ad commit da81bec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testutil/beaconmock/headproducer_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ func TestHeadProducer(t *testing.T) {
}

// Refer https://github.com/cenkalti/backoff/blob/v4/backoff.go#L46 for the following snippet.
// We don't need the full dependency since we don't want these tests to support exponential backoff.
// We want simple, fast tests where a single event is sent by the server and is intercepted by the client, or
// it produces an error.

// Stop indicates that no more retries should be made for use in NextBackOff().
const Stop time.Duration = -1
Expand Down

0 comments on commit da81bec

Please sign in to comment.