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.

This commit is contained in:
Simon Morlat 2018-05-21 18:02:08 +02:00
parent da246bf288
commit 3ee89b9d91

View file

@ -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);