File tree Expand file tree Collapse file tree
services/sts/src/test/java/software/amazon/awssdk/services/sts/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818import static org .assertj .core .api .Assertions .assertThat ;
1919import static org .mockito .Mockito .mock ;
2020
21- import java .time .Duration ;
2221import java .util .stream .Stream ;
2322import org .junit .jupiter .api .Test ;
2423import org .junit .jupiter .params .ParameterizedTest ;
@@ -98,7 +97,8 @@ void assertRetriesOnIdpCommunicationException(RetryStrategy strategy) {
9897 .token (token )
9998 .failure (failure )
10099 .build ();
101- assertThat (strategy .refreshRetryToken (refresh ).delay ()).isGreaterThan (Duration .ZERO );
100+ // Should not throw TokenAcquisitionFailedException
101+ assertThat (strategy .refreshRetryToken (refresh )).isNotNull ();
102102 }
103103
104104 private static Stream <Arguments > retryModeResolutionCases () {
You can’t perform that action at this time.
0 commit comments