File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
test/protocol-tests/src/test/java/software/amazon/awssdk/protocol/tests/timeout Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1919
2020import java .time .Duration ;
2121import org .junit .jupiter .api .Test ;
22+ import software .amazon .awssdk .testutils .retry .RetryableTest ;
2223import software .amazon .awssdk .utils .Pair ;
2324
2425public abstract class BaseApiCallAttemptTimeoutTest extends BaseTimeoutTest {
2526
2627 protected static final Duration API_CALL_ATTEMPT_TIMEOUT = Duration .ofMillis (100 );
2728 protected static final Duration DELAY_BEFORE_API_CALL_ATTEMPT_TIMEOUT = Duration .ofMillis (50 );
28- protected static final Duration DELAY_AFTER_API_CALL_ATTEMPT_TIMEOUT = Duration .ofMillis (150 );
29+ protected static final Duration DELAY_AFTER_API_CALL_ATTEMPT_TIMEOUT = Duration .ofMillis (500 );
2930
3031 @ Test
3132 public void nonstreamingOperation200_finishedWithinTime_shouldSucceed () throws Exception {
@@ -45,13 +46,13 @@ public void nonstreamingOperation500_finishedWithinTime_shouldNotTimeout() throw
4546 verifyFailedResponseNotTimedOut ();
4647 }
4748
48- @ Test
49+ @ RetryableTest ( maxRetries = 3 )
4950 public void nonstreamingOperation500_notFinishedWithinTime_shouldTimeout () {
5051 stubErrorResponse (DELAY_AFTER_API_CALL_ATTEMPT_TIMEOUT );
5152 verifyTimedOut ();
5253 }
5354
54- @ Test
55+ @ RetryableTest ( maxRetries = 3 )
5556 public void streamingOperation_finishedWithinTime_shouldSucceed () throws Exception {
5657 stubSuccessResponse (DELAY_BEFORE_API_CALL_ATTEMPT_TIMEOUT );
5758 verifySuccessResponseNotTimedOut ();
You can’t perform that action at this time.
0 commit comments