Skip to content

Commit

Permalink
Updated sleep timeout to account for latency.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianluisgomez committed Mar 29, 2023
1 parent 176c487 commit aedb1ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/com/bandwidth/VoiceApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void testCreateCallAndGetCallState() throws Exception {
createCallResponse.getEnqueuedTime().getClass());

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

// get call state
Thread.sleep(2000); // Wait to get Call because of current system latency issues
Thread.sleep(5000); // Wait to get Call because of current system latency issues
ApiResponse<CallState> callStateApiResponse = controller.getCall(ACCOUNT_ID,
createCallResponse.getCallId());
CallState callStateResponse = callStateApiResponse.getResult();
Expand Down

0 comments on commit aedb1ef

Please sign in to comment.