Skip to content

Commit aa136ea

Browse files
Merge pull request #50 from Bandwidth/DX-2257_FixNightlyTestRunFailures
DX-2257 Fixed sporadic failures of CreateAndGetCall tests during nightly test runs
2 parents 1119cd3 + 4280b4f commit aa136ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public void testCreateCallAndGetCallState() throws Exception {
4949
assertEquals("From phone number for create call not equal", BW_NUMBER, createCallResponse.getFrom());
5050

5151
//get call state
52+
Thread.sleep(750); // Wait to get Call because of current system latency issues
5253
ApiResponse<CallState> callStateApiResponse = controller.getCall(ACCOUNT_ID, createCallResponse.getCallId());
5354
assertEquals("Response Code is not 200", 200, callStateApiResponse.getStatusCode());
5455

@@ -95,6 +96,7 @@ public void testCreateCallWithAmdAndGetCallState() throws Exception {
9596
assertEquals("From phone number for create call not equal", BW_NUMBER, createCallResponse.getFrom());
9697

9798
//get call state
99+
Thread.sleep(750); // Wait to get Call because of current system latency issues
98100
ApiResponse<CallState> callStateApiResponse = controller.getCall(ACCOUNT_ID, createCallResponse.getCallId());
99101
CallState callStateResponse = callStateApiResponse.getResult();
100102
assertEquals("Application ID for call state not equal", VOICE_APPLICATION_ID, callStateResponse.getApplicationId());

0 commit comments

Comments
 (0)