mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-25 00:09:02 +00:00
Introduce MethodRetryEvent for @Retryable execution
Closes gh-35382
This commit is contained in:
@@ -258,7 +258,7 @@ class RetryTemplateTests {
|
||||
|
||||
assertThatExceptionOfType(RetryException.class)
|
||||
.isThrownBy(() -> retryTemplate.execute(retryable))
|
||||
.withMessageMatching("Interrupted during back-off for retryable operation '.+?'")
|
||||
.withMessageMatching("Interrupted during back-off for retryable operation '.+?'; aborting execution")
|
||||
.withCause(exception)
|
||||
.satisfies(throwable -> assertThat(throwable.getSuppressed()).isEmpty())
|
||||
.satisfies(throwable -> assertThat(throwable.getRetryCount()).isZero())
|
||||
|
||||
Reference in New Issue
Block a user