@@ -43,6 +43,7 @@ public void testCreateCallAndGetCallState() throws Exception {
43
43
.build ();
44
44
45
45
ApiResponse <CreateCallResponse > createCallApiResponse = controller .createCall (ACCOUNT_ID , body );
46
+
46
47
assertEquals ("Response Code is not 201" , 201 , createCallApiResponse .getStatusCode ());
47
48
48
49
CreateCallResponse createCallResponse = createCallApiResponse .getResult ();
@@ -58,7 +59,7 @@ public void testCreateCallAndGetCallState() throws Exception {
58
59
createCallResponse .getEnqueuedTime ().getClass ());
59
60
60
61
// 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
62
63
ApiResponse <CallState > callStateApiResponse = controller .getCall (ACCOUNT_ID ,
63
64
createCallResponse .getCallId ());
64
65
assertEquals ("Response Code is not 200" , 200 , callStateApiResponse .getStatusCode ());
@@ -111,7 +112,7 @@ public void testCreateCallWithAmdAndGetCallState() throws Exception {
111
112
assertEquals ("From phone number for create call not equal" , BW_NUMBER , createCallResponse .getFrom ());
112
113
113
114
// 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
115
116
ApiResponse <CallState > callStateApiResponse = controller .getCall (ACCOUNT_ID ,
116
117
createCallResponse .getCallId ());
117
118
CallState callStateResponse = callStateApiResponse .getResult ();
0 commit comments