mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Make @Retryable timeout tests more robust
See gh-35963
This commit is contained in:
+2
-2
@@ -464,11 +464,11 @@ class ReactiveRetryInterceptorTests {
|
||||
});
|
||||
}
|
||||
|
||||
@Retryable(timeout = 5, delay = 10)
|
||||
@Retryable(timeout = 5, delay = 0)
|
||||
public Mono<Object> retryOperationWithTimeoutExceededAfterInitialFailure() {
|
||||
return Mono.fromCallable(() -> {
|
||||
counter.incrementAndGet();
|
||||
Thread.sleep(10);
|
||||
Thread.sleep(20);
|
||||
throw new IOException(counter.toString());
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user