From 7cd3034f3b7d052fa7e193e079cdb2b8f6d53485 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Tue, 5 Apr 2016 15:51:42 +0200 Subject: [PATCH] TestsUI: fix broken tests --- TestsUI/CallTester.m | 1 + TestsUI/LinphoneTestCase.m | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/TestsUI/CallTester.m b/TestsUI/CallTester.m index ae1c92d5c..0b5c66a1d 100644 --- a/TestsUI/CallTester.m +++ b/TestsUI/CallTester.m @@ -13,6 +13,7 @@ #pragma mark - Setup - (void)beforeAll { + [super beforeAll]; [self switchToValidAccountIfNeeded]; } diff --git a/TestsUI/LinphoneTestCase.m b/TestsUI/LinphoneTestCase.m index 655a81780..a99e6c221 100644 --- a/TestsUI/LinphoneTestCase.m +++ b/TestsUI/LinphoneTestCase.m @@ -112,8 +112,7 @@ LOGI(@"Switching to a test account..."); LinphoneCore *lc = [LinphoneManager getLc]; - linphone_core_clear_proxy_config(lc); - linphone_core_clear_all_auth_info(lc); + [[LinphoneManager instance] removeAllAccounts]; LinphoneAddress *testAddr = linphone_core_interpret_url( LC, [[NSString stringWithFormat:@"sip:%@@%@", [self me], [self accountDomain]] UTF8String]); @@ -132,13 +131,11 @@ linphone_address_get_username(testAddr), NULL, NULL, linphone_address_get_domain(testAddr)); - [[LinphoneManager instance] configurePushTokenForProxyConfig:testProxy]; - [[LinphoneManager instance] removeAllAccounts]; - linphone_proxy_config_enable_register(testProxy, true); linphone_core_add_auth_info(lc, testAuth); linphone_core_add_proxy_config(lc, testProxy); linphone_core_set_default_proxy_config(lc, testProxy); + [[LinphoneManager instance] configurePushTokenForProxyConfig:testProxy]; linphone_proxy_config_unref(testProxy); linphone_auth_info_destroy(testAuth);