Skip to content

Commit aedb1ef

Browse files
Updated sleep timeout to account for latency.
1 parent 176c487 commit aedb1ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void testCreateCallAndGetCallState() throws Exception {
5858
createCallResponse.getEnqueuedTime().getClass());
5959

6060
// get call state
61-
Thread.sleep(2000); // Wait to get Call because of current system latency issues
61+
Thread.sleep(5000); // Wait to get Call because of current system latency issues
6262
ApiResponse<CallState> callStateApiResponse = controller.getCall(ACCOUNT_ID,
6363
createCallResponse.getCallId());
6464
assertEquals("Response Code is not 200", 200, callStateApiResponse.getStatusCode());
@@ -111,7 +111,7 @@ public void testCreateCallWithAmdAndGetCallState() throws Exception {
111111
assertEquals("From phone number for create call not equal", BW_NUMBER, createCallResponse.getFrom());
112112

113113
// get call state
114-
Thread.sleep(2000); // Wait to get Call because of current system latency issues
114+
Thread.sleep(5000); // Wait to get Call because of current system latency issues
115115
ApiResponse<CallState> callStateApiResponse = controller.getCall(ACCOUNT_ID,
116116
createCallResponse.getCallId());
117117
CallState callStateResponse = callStateApiResponse.getResult();

0 commit comments

Comments
 (0)