@@ -143,7 +143,7 @@ public void testSuccessWithFailures() throws Exception {
143
143
assertEquals (5 , future .getAttemptSettings ().getAttemptCount ());
144
144
145
145
verify (tracer , times (6 )).attemptStarted (eq ("request" ), anyInt ());
146
- verify (tracer , times (5 )).attemptFailed (any (Throwable .class ), any (java .time .Duration .class ));
146
+ verify (tracer , times (5 )).attemptFailedDuration (any (Throwable .class ), any (java .time .Duration .class ));
147
147
verify (tracer , times (1 )).attemptSucceeded ();
148
148
verifyNoMoreInteractions (tracer );
149
149
}
@@ -188,7 +188,7 @@ public void testMaxRetriesExceeded() throws Exception {
188
188
assertEquals (5 , future .getAttemptSettings ().getAttemptCount ());
189
189
190
190
verify (tracer , times (6 )).attemptStarted (eq ("request" ), anyInt ());
191
- verify (tracer , times (5 )).attemptFailed (any (Throwable .class ), any (java .time .Duration .class ));
191
+ verify (tracer , times (5 )).attemptFailedDuration (any (Throwable .class ), any (java .time .Duration .class ));
192
192
verify (tracer , times (1 )).attemptFailedRetriesExhausted (any (Throwable .class ));
193
193
verifyNoMoreInteractions (tracer );
194
194
}
@@ -266,7 +266,7 @@ public void testCancelByRetryingAlgorithm() throws Exception {
266
266
267
267
verify (tracer , times (5 )).attemptStarted (eq ("request" ), anyInt ());
268
268
// Pre-apocalypse failures
269
- verify (tracer , times (4 )).attemptFailed (any (Throwable .class ), any (java .time .Duration .class ));
269
+ verify (tracer , times (4 )).attemptFailedDuration (any (Throwable .class ), any (java .time .Duration .class ));
270
270
// Apocalypse failure
271
271
verify (tracer , times (1 )).attemptFailedRetriesExhausted (any (CancellationException .class ));
272
272
verifyNoMoreInteractions (tracer );
@@ -286,7 +286,7 @@ public void testUnexpectedExceptionFromRetryAlgorithm() throws Exception {
286
286
287
287
verify (tracer , times (5 )).attemptStarted (eq ("request" ), anyInt ());
288
288
// Pre-apocalypse failures
289
- verify (tracer , times (4 )).attemptFailed (any (Throwable .class ), any (java .time .Duration .class ));
289
+ verify (tracer , times (4 )).attemptFailedDuration (any (Throwable .class ), any (java .time .Duration .class ));
290
290
// Apocalypse failure
291
291
verify (tracer , times (1 )).attemptPermanentFailure (any (RuntimeException .class ));
292
292
verifyNoMoreInteractions (tracer );
0 commit comments