@@ -122,7 +122,7 @@ def test_create_call_and_get_call_state
122122 assert ( response . data . enqueued_time . is_a? ( DateTime ) , "enqueued time is not a DateTime object" )
123123
124124 #Get phone call information
125- sleep 1
125+ sleep ( 5 )
126126 response = @bandwidth_client . voice_client . client . get_call ( BW_ACCOUNT_ID , response . data . call_id )
127127 assert ( response . data . state . length > 0 , "state value not set" )
128128 assert_not_nil ( response . data . enqueued_time , "enqueued time is nil" )
@@ -151,6 +151,7 @@ def test_create_call_with_amd_and_get_call_state
151151 assert ( response . data . call_id . length > 0 , "call_id value not set" )
152152
153153 #Get phone call information
154+ sleep ( 5 )
154155 response = @bandwidth_client . voice_client . client . get_call ( BW_ACCOUNT_ID , response . data . call_id )
155156 assert ( response . data . state . length > 0 , "state value not set" )
156157 end
@@ -354,6 +355,7 @@ def test_record
354355 :recording_available_url => "https://available.com" ,
355356 :recording_available_method => "GET" ,
356357 :transcribe => false ,
358+ :detect_language => true ,
357359 :transcription_available_url => "https://transcribe.com" ,
358360 :transcription_available_method => "POST" ,
359361 :username => "user" ,
@@ -371,7 +373,7 @@ def test_record
371373
372374 response = Bandwidth ::Voice ::Response . new ( )
373375 response . push ( record )
374- expected = '<?xml version="1.0" encoding="UTF-8"?><Response><Record tag="tag" username="user" password="pass" recordCompleteUrl="https://complete.com" recordCompleteMethod="POST" recordingAvailableUrl="https://available.com" recordingAvailableMethod="GET" terminatingDigits="#" maxDuration="3" fileFormat="wav" transcribe="false" transcriptionAvailableUrl="https://transcribe.com" transcriptionAvailableMethod="POST" silenceTimeout="5" recordCompleteFallbackUrl="https://test.com" recordCompleteFallbackMethod="GET" fallbackUsername="fuser" fallbackPassword="fpass"/></Response>'
376+ expected = '<?xml version="1.0" encoding="UTF-8"?><Response><Record tag="tag" username="user" password="pass" recordCompleteUrl="https://complete.com" recordCompleteMethod="POST" recordingAvailableUrl="https://available.com" recordingAvailableMethod="GET" terminatingDigits="#" maxDuration="3" fileFormat="wav" transcribe="false" detectLanguage="true" transcriptionAvailableUrl="https://transcribe.com" transcriptionAvailableMethod="POST" silenceTimeout="5" recordCompleteFallbackUrl="https://test.com" recordCompleteFallbackMethod="GET" fallbackUsername="fuser" fallbackPassword="fpass"/></Response>'
375377 actual = response . to_bxml ( )
376378 assert_equal ( expected , actual )
377379 end
0 commit comments