File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
spring-context/src/test/java/org/springframework/resilience Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -481,23 +481,23 @@ public Mono<Object> retryOperationWithTimeoutExceededAfterFirstDelayButBeforeFir
481481 });
482482 }
483483
484- @ Retryable (timeout = 5 , delay = 0 )
484+ @ Retryable (timeout = 20 , delay = 0 )
485485 public Mono <Object > retryOperationWithTimeoutExceededAfterFirstRetry () {
486486 return Mono .fromCallable (() -> {
487487 counter .incrementAndGet ();
488488 if (counter .get () == 2 ) {
489- Thread .sleep (10 );
489+ Thread .sleep (50 );
490490 }
491491 throw new IOException (counter .toString ());
492492 });
493493 }
494494
495- @ Retryable (timeout = 5 , delay = 0 )
495+ @ Retryable (timeout = 20 , delay = 0 )
496496 public Mono <Object > retryOperationWithTimeoutExceededAfterSecondRetry () {
497497 return Mono .fromCallable (() -> {
498498 counter .incrementAndGet ();
499499 if (counter .get () == 3 ) {
500- Thread .sleep (10 );
500+ Thread .sleep (50 );
501501 }
502502 throw new IOException (counter .toString ());
503503 });
Original file line number Diff line number Diff line change @@ -439,20 +439,20 @@ public void retryOperationWithTimeoutExceededAfterFirstDelayButBeforeFirstRetry(
439439 throw new IOException (Integer .toString (counter ));
440440 }
441441
442- @ Retryable (timeout = 5 , delay = 0 )
442+ @ Retryable (timeout = 20 , delay = 0 )
443443 public void retryOperationWithTimeoutExceededAfterFirstRetry () throws Exception {
444444 counter ++;
445445 if (counter == 2 ) {
446- Thread .sleep (10 );
446+ Thread .sleep (50 );
447447 }
448448 throw new IOException (Integer .toString (counter ));
449449 }
450450
451- @ Retryable (timeout = 5 , delay = 0 )
451+ @ Retryable (timeout = 20 , delay = 0 )
452452 public void retryOperationWithTimeoutExceededAfterSecondRetry () throws Exception {
453453 counter ++;
454454 if (counter == 3 ) {
455- Thread .sleep (10 );
455+ Thread .sleep (50 );
456456 }
457457 throw new IOException (Integer .toString (counter ));
458458 }
You can’t perform that action at this time.
0 commit comments