fix test not unregistering, causing later problems on other tests

This commit is contained in:
Simon Morlat 2015-10-20 12:45:00 +02:00
parent 55a4b5a77e
commit 3497afd30e
2 changed files with 4 additions and 2 deletions

View file

@ -389,7 +389,7 @@ LinphoneOnlineStatus linphone_friend_get_status(const LinphoneFriend *lf){
break;
case LinphonePresenceActivityOnline:
/* Should not happen! */
ms_warning("LinphonePresenceActivityOnline should not happen here!");
/*ms_warning("LinphonePresenceActivityOnline should not happen here!");*/
break;
case LinphonePresenceActivityOffline:
online_status = LinphoneStatusOffline;

View file

@ -419,7 +419,9 @@ static void subscribe_presence_expired(){
wait_for_list(lcs,NULL, 0, 11000);
BC_ASSERT_PTR_NULL(lf->insubs);
/*just make network reachable so that marie can unregister properly*/
linphone_core_set_network_reachable(marie->lc, TRUE);
BC_ASSERT_TRUE(wait_for_list(lcs,&marie->stat.number_of_LinphoneRegistrationOk,2, 10000));
linphone_core_manager_destroy(marie);
linphone_core_manager_destroy(pauline1);