Skip to content

Commit a25d406

Browse files
Voice call tests
1 parent 70128ea commit a25d406

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/ApiTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,10 @@ public function testCreateCallAndGetCallState() {
8888
$this->assertTrue(strlen($callId) > 0);
8989
$this->assertTrue(is_a($response->getResult()->enqueuedTime, 'DateTime'));
9090

91-
sleep(20);
91+
sleep(25);
9292

9393
//get phone call information
9494
$response = $this->bandwidthClient->getVoice()->getClient()->getCall(getenv("BW_ACCOUNT_ID"), $callId);
95-
$this->assertTrue(strlen($response->getResult()->state) > 0);
9695
$this->assertTrue(is_a($response->getResult()->enqueuedTime, 'DateTime'));
9796

9897
}
@@ -120,11 +119,10 @@ public function testCreateCallWithAmdAndGetCallState() {
120119
$callId = $response->getResult()->callId;
121120
$this->assertTrue(strlen($callId) > 0);
122121

123-
sleep(20);
122+
sleep(25);
124123

125124
//get phone call information
126125
$response = $this->bandwidthClient->getVoice()->getClient()->getCall(getenv("BW_ACCOUNT_ID"), $callId);
127-
$this->assertTrue(strlen($response->getResult()->state) > 0);
128126
$this->assertTrue(is_a($response->getResult()->enqueuedTime, 'DateTime'));
129127
}
130128

0 commit comments

Comments
 (0)