Skip to content

Commit a90d8aa

Browse files
committed
added sleep for call status check
1 parent ec2d2a6 commit a90d8aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/integration/api_tests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ def test_create_call_and_get_call_state(self):
100100
self.assertTrue(len(response.body.call_id) > 1)
101101

102102
#get phone call information
103+
import time
104+
time.sleep(1) #No guarantee that the info will be immediately available
103105
response = self.voice_client.get_call_state(ACCOUNT_ID, response.body.call_id)
104106
self.assertTrue(len(response.body.state) > 1)
105107

0 commit comments

Comments
 (0)