File tree 1 file changed +4
-3
lines changed
test/protocol-tests/src/test/java/software/amazon/awssdk/protocol/tests/timeout
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 19
19
20
20
import java .time .Duration ;
21
21
import org .junit .jupiter .api .Test ;
22
+ import software .amazon .awssdk .testutils .retry .RetryableTest ;
22
23
import software .amazon .awssdk .utils .Pair ;
23
24
24
25
public abstract class BaseApiCallAttemptTimeoutTest extends BaseTimeoutTest {
25
26
26
27
protected static final Duration API_CALL_ATTEMPT_TIMEOUT = Duration .ofMillis (100 );
27
28
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 );
29
30
30
31
@ Test
31
32
public void nonstreamingOperation200_finishedWithinTime_shouldSucceed () throws Exception {
@@ -45,13 +46,13 @@ public void nonstreamingOperation500_finishedWithinTime_shouldNotTimeout() throw
45
46
verifyFailedResponseNotTimedOut ();
46
47
}
47
48
48
- @ Test
49
+ @ RetryableTest ( maxRetries = 3 )
49
50
public void nonstreamingOperation500_notFinishedWithinTime_shouldTimeout () {
50
51
stubErrorResponse (DELAY_AFTER_API_CALL_ATTEMPT_TIMEOUT );
51
52
verifyTimedOut ();
52
53
}
53
54
54
- @ Test
55
+ @ RetryableTest ( maxRetries = 3 )
55
56
public void streamingOperation_finishedWithinTime_shouldSucceed () throws Exception {
56
57
stubSuccessResponse (DELAY_BEFORE_API_CALL_ATTEMPT_TIMEOUT );
57
58
verifySuccessResponseNotTimedOut ();
You can’t perform that action at this time.
0 commit comments