(t *testing.T)
| 50 | } |
| 51 | |
| 52 | func TestAddRetryHook(t *testing.T) { |
| 53 | test := "test1" |
| 54 | testRetry(t, func(r *Request) { |
| 55 | r.AddRetryHook(func(resp *Response, err error) { |
| 56 | test = "test2" |
| 57 | }) |
| 58 | }) |
| 59 | tests.AssertEqual(t, "test2", test) |
| 60 | } |
| 61 | |
| 62 | func TestRetryOverride(t *testing.T) { |
| 63 | c := tc(). |
nothing calls this directly
no test coverage detected
searching dependent graphs…