File tree 2 files changed +3
-3
lines changed
src/test/java/net/jodah/failsafe
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ public void shouldTimeoutAndCancel() throws Throwable {
296
296
Timeout <Object > timeout = Timeout .of (Duration .ofMillis (1 )).withCancel (false );
297
297
ContextualSupplier supplier = ctx -> {
298
298
if (ctx .getAttemptCount () != 2 ) {
299
- Thread .sleep (100 );
299
+ Thread .sleep (200 );
300
300
waiter .assertTrue (ctx .isCancelled ());
301
301
} else
302
302
waiter .assertFalse (ctx .isCancelled ()); // Cancellation should be cleared on last attempt
Original file line number Diff line number Diff line change 10
10
11
11
@ Test
12
12
public class Issue242Test {
13
- public void test () throws Throwable {
13
+ public void shouldDelayOnExplicitRetry () throws Throwable {
14
14
RetryPolicy <String > retryPolicy = new RetryPolicy <String >().handleResult (null )
15
- .withDelay (Duration .ofMillis (100 ))
15
+ .withDelay (Duration .ofMillis (110 ))
16
16
.withMaxAttempts (3 );
17
17
18
18
long startTime = System .currentTimeMillis ();
You can’t perform that action at this time.
0 commit comments