@@ -143,7 +143,8 @@ 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 )).attemptFailedDuration (any (Throwable .class ), any (java .time .Duration .class ));
146
+ verify (tracer , times (5 ))
147
+ .attemptFailedDuration (any (Throwable .class ), any (java .time .Duration .class ));
147
148
verify (tracer , times (1 )).attemptSucceeded ();
148
149
verifyNoMoreInteractions (tracer );
149
150
}
@@ -188,7 +189,8 @@ public void testMaxRetriesExceeded() throws Exception {
188
189
assertEquals (5 , future .getAttemptSettings ().getAttemptCount ());
189
190
190
191
verify (tracer , times (6 )).attemptStarted (eq ("request" ), anyInt ());
191
- verify (tracer , times (5 )).attemptFailedDuration (any (Throwable .class ), any (java .time .Duration .class ));
192
+ verify (tracer , times (5 ))
193
+ .attemptFailedDuration (any (Throwable .class ), any (java .time .Duration .class ));
192
194
verify (tracer , times (1 )).attemptFailedRetriesExhausted (any (Throwable .class ));
193
195
verifyNoMoreInteractions (tracer );
194
196
}
@@ -266,7 +268,8 @@ public void testCancelByRetryingAlgorithm() throws Exception {
266
268
267
269
verify (tracer , times (5 )).attemptStarted (eq ("request" ), anyInt ());
268
270
// Pre-apocalypse failures
269
- verify (tracer , times (4 )).attemptFailedDuration (any (Throwable .class ), any (java .time .Duration .class ));
271
+ verify (tracer , times (4 ))
272
+ .attemptFailedDuration (any (Throwable .class ), any (java .time .Duration .class ));
270
273
// Apocalypse failure
271
274
verify (tracer , times (1 )).attemptFailedRetriesExhausted (any (CancellationException .class ));
272
275
verifyNoMoreInteractions (tracer );
@@ -286,7 +289,8 @@ public void testUnexpectedExceptionFromRetryAlgorithm() throws Exception {
286
289
287
290
verify (tracer , times (5 )).attemptStarted (eq ("request" ), anyInt ());
288
291
// Pre-apocalypse failures
289
- verify (tracer , times (4 )).attemptFailedDuration (any (Throwable .class ), any (java .time .Duration .class ));
292
+ verify (tracer , times (4 ))
293
+ .attemptFailedDuration (any (Throwable .class ), any (java .time .Duration .class ));
290
294
// Apocalypse failure
291
295
verify (tracer , times (1 )).attemptPermanentFailure (any (RuntimeException .class ));
292
296
verifyNoMoreInteractions (tracer );
0 commit comments