MCPcopy Create free account
hub / github.com/imroc/req / TestRetryBackOff

Function TestRetryBackOff

retry_test.go:14–18  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

12)
13
14func TestRetryBackOff(t *testing.T) {
15 testRetry(t, func(r *Request) {
16 r.SetRetryBackoffInterval(10*time.Millisecond, 1*time.Second)
17 })
18}
19
20func testRetry(t *testing.T, setFunc func(r *Request)) {
21 attempt := 0

Callers

nothing calls this directly

Calls 2

testRetryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…