Skip to content

Commit a8592c8

Browse files
Raised timeout
1 parent 628a870 commit a8592c8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/com/bandwidth/VoiceApiTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public void testCreateCallAndGetCallState() throws Exception {
4343
.build();
4444

4545
ApiResponse<CreateCallResponse> createCallApiResponse = controller.createCall(ACCOUNT_ID, body);
46+
4647
assertEquals("Response Code is not 201", 201, createCallApiResponse.getStatusCode());
4748

4849
CreateCallResponse createCallResponse = createCallApiResponse.getResult();
@@ -58,7 +59,7 @@ public void testCreateCallAndGetCallState() throws Exception {
5859
createCallResponse.getEnqueuedTime().getClass());
5960

6061
// get call state
61-
Thread.sleep(5000); // Wait to get Call because of current system latency issues
62+
Thread.sleep(15000); // Wait to get Call because of current system latency issues
6263
ApiResponse<CallState> callStateApiResponse = controller.getCall(ACCOUNT_ID,
6364
createCallResponse.getCallId());
6465
assertEquals("Response Code is not 200", 200, callStateApiResponse.getStatusCode());
@@ -111,7 +112,7 @@ public void testCreateCallWithAmdAndGetCallState() throws Exception {
111112
assertEquals("From phone number for create call not equal", BW_NUMBER, createCallResponse.getFrom());
112113

113114
// get call state
114-
Thread.sleep(5000); // Wait to get Call because of current system latency issues
115+
Thread.sleep(15000); // Wait to get Call because of current system latency issues
115116
ApiResponse<CallState> callStateApiResponse = controller.getCall(ACCOUNT_ID,
116117
createCallResponse.getCallId());
117118
CallState callStateResponse = callStateApiResponse.getResult();

0 commit comments

Comments
 (0)