@@ -476,7 +476,7 @@ void retryWithTimeoutExceededAfterInitialFailure() throws Exception {
476476 assertThat (invocationCount ).hasValue (0 );
477477 assertThatExceptionOfType (RetryException .class )
478478 .isThrownBy (() -> retryTemplate .execute (retryable ))
479- .withMessageMatching ("Retry policy for operation '.+?' exceeded timeout \\ (5 ms \\ ); aborting execution" )
479+ .withMessageMatching ("Retry policy for operation '.+?' exceeded timeout \\ (5ms \\ ); aborting execution" )
480480 .withCause (new CustomException ("Boom 1" ))
481481 .satisfies (throwable -> inOrder .verify (retryListener ).onRetryPolicyTimeout (
482482 eq (retryPolicy ), eq (retryable ), eq (throwable )));
@@ -503,8 +503,8 @@ void retryWithTimeoutExceededAfterFirstDelayButBeforeFirstRetry() throws Excepti
503503 assertThatExceptionOfType (RetryException .class )
504504 .isThrownBy (() -> retryTemplate .execute (retryable ))
505505 .withMessageMatching ("""
506- Retry policy for operation '.+?' would exceed timeout \\ (5 ms \\ ) \
507- due to pending sleep time \\ (10 ms \\ ); preemptively aborting execution\
506+ Retry policy for operation '.+?' would exceed timeout \\ (5ms \\ ) \
507+ due to pending sleep time \\ (10ms \\ ); preemptively aborting execution\
508508 """ )
509509 .withCause (new CustomException ("Boom 1" ))
510510 .satisfies (throwable -> inOrder .verify (retryListener ).onRetryPolicyTimeout (
@@ -535,7 +535,7 @@ void retryWithTimeoutExceededAfterFirstRetry() throws Exception {
535535 assertThat (invocationCount ).hasValue (0 );
536536 assertThatExceptionOfType (RetryException .class )
537537 .isThrownBy (() -> retryTemplate .execute (retryable ))
538- .withMessageMatching ("Retry policy for operation '.+?' exceeded timeout \\ (20 ms \\ ); aborting execution" )
538+ .withMessageMatching ("Retry policy for operation '.+?' exceeded timeout \\ (20ms \\ ); aborting execution" )
539539 .withCause (new CustomException ("Boom 2" ))
540540 .satisfies (throwable -> {
541541 inOrder .verify (retryListener ).beforeRetry (retryPolicy , retryable );
@@ -570,7 +570,7 @@ void retryWithTimeoutExceededAfterSecondRetry() throws Exception {
570570 assertThat (invocationCount ).hasValue (0 );
571571 assertThatExceptionOfType (RetryException .class )
572572 .isThrownBy (() -> retryTemplate .execute (retryable ))
573- .withMessageMatching ("Retry policy for operation '.+?' exceeded timeout \\ (20 ms \\ ); aborting execution" )
573+ .withMessageMatching ("Retry policy for operation '.+?' exceeded timeout \\ (20ms \\ ); aborting execution" )
574574 .withCause (new CustomException ("Boom 3" ))
575575 .satisfies (throwable -> {
576576 var counter = new AtomicInteger (1 );
0 commit comments