mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 11:38:08 +00:00
fix bug in test, that should wait ICE reINVITE to complete.
This commit is contained in:
parent
cd6dfcabe4
commit
b0f02153e9
2 changed files with 13 additions and 4 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit 687595aef470a3ee2b83574c04c36b92a99110e8
|
||||
Subproject commit 6f6ca87556fd8fe62ee463457fc4c305d3e6267c
|
||||
|
|
@ -5493,7 +5493,12 @@ static void _call_with_network_switch(bool_t use_ice, bool_t with_socket_refresh
|
|||
if (!call_ok) goto end;
|
||||
|
||||
wait_for_until(marie->lc, pauline->lc, NULL, 0, 2000);
|
||||
if (use_ice) BC_ASSERT_TRUE(check_ice(pauline,marie,LinphoneIceStateHostConnection));
|
||||
if (use_ice) {
|
||||
BC_ASSERT_TRUE(check_ice(pauline,marie,LinphoneIceStateHostConnection));
|
||||
/*wait for ICE reINVITE to complete*/
|
||||
BC_ASSERT_TRUE(wait_for(marie->lc, pauline->lc, &pauline->stat.number_of_LinphoneCallStreamsRunning, 2));
|
||||
BC_ASSERT_TRUE(wait_for(marie->lc, pauline->lc, &marie->stat.number_of_LinphoneCallStreamsRunning, 2));
|
||||
}
|
||||
|
||||
/*marie looses the network and reconnects*/
|
||||
linphone_core_set_network_reachable(marie->lc, FALSE);
|
||||
|
|
@ -5560,8 +5565,12 @@ static void call_with_sip_and_rtp_independant_switches(){
|
|||
if (!call_ok) goto end;
|
||||
|
||||
wait_for_until(marie->lc, pauline->lc, NULL, 0, 2000);
|
||||
if (use_ice) BC_ASSERT_TRUE(check_ice(pauline,marie,LinphoneIceStateHostConnection));
|
||||
|
||||
if (use_ice) {
|
||||
BC_ASSERT_TRUE(check_ice(pauline,marie,LinphoneIceStateHostConnection));
|
||||
/*wait for ICE reINVITE to complete*/
|
||||
BC_ASSERT_TRUE(wait_for(marie->lc, pauline->lc, &pauline->stat.number_of_LinphoneCallStreamsRunning, 2));
|
||||
BC_ASSERT_TRUE(wait_for(marie->lc, pauline->lc, &marie->stat.number_of_LinphoneCallStreamsRunning, 2));
|
||||
}
|
||||
/*marie looses the SIP network and reconnects*/
|
||||
linphone_core_set_sip_network_reachable(marie->lc, FALSE);
|
||||
wait_for_until(marie->lc, pauline->lc, NULL, 0, 1000);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue