From 0be65ba8347d6dbfe1d9490a33cf0d93c5b9e612 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Tue, 11 Oct 2016 10:34:25 +0200 Subject: [PATCH] fix tests --- tester/presence_tester.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tester/presence_tester.c b/tester/presence_tester.c index 29d32d171..823dd19e6 100644 --- a/tester/presence_tester.c +++ b/tester/presence_tester.c @@ -149,7 +149,7 @@ static void simple_publish_with_expire(int expires) { proxy = linphone_core_get_default_proxy_config(marie->lc); linphone_proxy_config_edit(proxy); - if (expires >0) { + if (expires > 0) { linphone_proxy_config_set_publish_expires(proxy,expires); } linphone_proxy_config_enable_publish(proxy,TRUE); @@ -192,7 +192,7 @@ static void simple_publish_with_expire(int expires) { BC_ASSERT_TRUE(wait_for(marie->lc,marie->lc,&marie->stat.number_of_LinphonePublishOk,4)); linphone_core_manager_stop(marie); - BC_ASSERT_EQUAL(marie->stat.number_of_LinphonePublishCleared,2,int,"%i"); + BC_ASSERT_EQUAL(marie->stat.number_of_LinphonePublishCleared,3,int,"%i"); /*yes it is 3 because when we change the expires, a new LinphoneEvent is created*/ BC_ASSERT_EQUAL(marie->stat.number_of_LinphonePublishOk,4,int,"%i"); linphone_core_manager_destroy(marie); } @@ -564,8 +564,8 @@ test_t presence_tests[] = { TEST_ONE_TAG("Simple Subscribe", simple_subscribe,"presence"), TEST_ONE_TAG("Simple Subscribe with early NOTIFY", simple_subscribe_with_early_notify,"presence"), TEST_NO_TAG("Simple Subscribe with friend from rc", simple_subscribe_with_friend_from_rc), - TEST_ONE_TAG("Simple Publish", simple_publish, "LeaksMemory"), - TEST_ONE_TAG("Simple Publish with expires", publish_with_expires, "LeaksMemory"), + TEST_NO_TAG("Simple Publish", simple_publish), + TEST_NO_TAG("Simple Publish with expires", publish_with_expires), /*TEST_ONE_TAG("Call with presence", call_with_presence, "LeaksMemory"),*/ TEST_NO_TAG("Unsubscribe while subscribing", unsubscribe_while_subscribing), TEST_NO_TAG("Presence information", presence_information),