From 3ee89b9d91a5bdc4689d1ee0004af32afb0211a0 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Mon, 21 May 2018 18:02:08 +0200 Subject: [PATCH] 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. --- tester/call_single_tester.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tester/call_single_tester.c b/tester/call_single_tester.c index 0184f7b78..3de3a2b0d 100644 --- a/tester/call_single_tester.c +++ b/tester/call_single_tester.c @@ -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);