Commit 3ee89b9d authored by Simon Morlat's avatar Simon Morlat
Browse files

Relax assertion of measurement of call duration, because getting the two...

Relax assertion of measurement of call duration, because getting the two Released state can take up to one seconds on some platforms, probably a lot of time is wasted in shutting down the audio stream.
parent da246bf2
......@@ -3180,7 +3180,7 @@ static void early_media_call_with_ringing_base(bool_t network_change){
end_call(pauline, marie);
ended_time=ms_get_cur_time_ms();
BC_ASSERT_LOWER( labs((long)((linphone_call_log_get_duration(marie_call_log)*1000) - (int64_t)(ended_time - connected_time))), 1000, long, "%ld");
BC_ASSERT_LOWER( labs((long)((linphone_call_log_get_duration(marie_call_log)*1000) - (int64_t)(ended_time - connected_time))), 1500, long, "%ld");
}
bctbx_list_free(lcs);
}
......@@ -4145,7 +4145,7 @@ void early_media_without_sdp_in_200_base( bool_t use_video, bool_t use_ice ){
end_call(pauline, marie);
ended_time=ms_get_cur_time_ms();
BC_ASSERT_LOWER(labs((long)((linphone_call_log_get_duration(marie_call_log)*1000) - (int64_t)(ended_time - connected_time))), 1000, long, "%ld");
BC_ASSERT_LOWER(labs((long)((linphone_call_log_get_duration(marie_call_log)*1000) - (int64_t)(ended_time - connected_time))), 1500, long, "%ld");
}
bctbx_list_free(lcs);
linphone_core_manager_destroy(marie);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment