From 3497afd30e5be4cd38e862b022f7cb0c2ee9f396 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Tue, 20 Oct 2015 12:45:00 +0200 Subject: [PATCH] fix test not unregistering, causing later problems on other tests --- coreapi/friend.c | 2 +- tester/presence_tester.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/coreapi/friend.c b/coreapi/friend.c index c74ebafa9..487cfd2a4 100644 --- a/coreapi/friend.c +++ b/coreapi/friend.c @@ -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; diff --git a/tester/presence_tester.c b/tester/presence_tester.c index 6041a39c1..9325617db 100644 --- a/tester/presence_tester.c +++ b/tester/presence_tester.c @@ -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);