Skip to content

Commit 2137ec7

Browse files
committed
Make @​Retryable timeout tests more robust
See gh-35963
1 parent 61201db commit 2137ec7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-context/src/test/java/org/springframework/resilience/ReactiveRetryInterceptorTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,11 +464,11 @@ public Mono<Object> retryOperationWithTimeoutNotExceededAndRetriesExhausted() {
464464
});
465465
}
466466

467-
@Retryable(timeout = 5, delay = 10)
467+
@Retryable(timeout = 5, delay = 0)
468468
public Mono<Object> retryOperationWithTimeoutExceededAfterInitialFailure() {
469469
return Mono.fromCallable(() -> {
470470
counter.incrementAndGet();
471-
Thread.sleep(10);
471+
Thread.sleep(20);
472472
throw new IOException(counter.toString());
473473
});
474474
}

0 commit comments

Comments
 (0)