Skip to content

Commit 9337251

Browse files
committed
add sleep
1 parent 60d74f9 commit 9337251

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/ApiTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ public function testCreateCallAndGetCallState() {
8585
$response = $this->bandwidthClient->getVoice()->getClient()->createCall(getenv("BW_ACCOUNT_ID"), $body);
8686
$callId = $response->getResult()->callId;
8787
$this->assertTrue(strlen($callId) > 0);
88+
89+
sleep(1);
8890

8991
//get phone call information
9092
$response = $this->bandwidthClient->getVoice()->getClient()->getCall(getenv("BW_ACCOUNT_ID"), $callId);
@@ -113,6 +115,8 @@ public function testCreateCallWithAmdAndGetCallState() {
113115
$callId = $response->getResult()->callId;
114116
$this->assertTrue(strlen($callId) > 0);
115117

118+
sleep(1);
119+
116120
//get phone call information
117121
$response = $this->bandwidthClient->getVoice()->getClient()->getCall(getenv("BW_ACCOUNT_ID"), $callId);
118122
$this->assertTrue(strlen($response->getResult()->state) > 0);

0 commit comments

Comments
 (0)