From 0e06d9b9688caa386edd50b98f971f6f974b171d Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Fri, 4 Nov 2016 23:22:28 +0100 Subject: [PATCH] fix test (adjust waits to take into account that dialog expiration doesn't trigger a new refresh (we let the SUBSCRIBE transaction timeout to trigger a new one instead). --- tester/presence_server_tester.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tester/presence_server_tester.c b/tester/presence_server_tester.c index c26af0bb9..a74abc7d0 100644 --- a/tester/presence_server_tester.c +++ b/tester/presence_server_tester.c @@ -633,13 +633,14 @@ static void test_presence_list_subscribe_with_error(bool_t io_error) { ms_message("Simulating in/out packets losses"); sal_set_send_error(laure->lc->sal,1500); /*make sure no refresh is sent, trash the message without generating error*/ sal_set_recv_error(laure->lc->sal, 1500); /*make sure server notify to close the dialog is also ignored*/ - wait_for_list(lcs, &dummy, 1, 5000); /* Wait a little bit for the subscribe to happen */ + wait_for_list(lcs, &dummy, 1, 32000); /* Wait a little bit for the subscribe transaction to timeout */ } /*restart normal behavior*/ sal_set_send_error(laure->lc->sal,0); sal_set_recv_error(laure->lc->sal, 1); + /*a new subscribe should be sent */ - BC_ASSERT_TRUE(wait_for_until(laure->lc, pauline->lc, &laure->stat.number_of_LinphonePresenceActivityVacation, 3, 6000)); /* give time for subscription to recover to avoid to receive 491 Request pending*/ + BC_ASSERT_TRUE(wait_for_until(laure->lc, pauline->lc, &laure->stat.number_of_LinphonePresenceActivityVacation, 3, 9000)); /* give time for subscription to recover to avoid to receive 491 Request pending*/ linphone_core_set_presence_model(pauline->lc, linphone_core_create_presence_model_with_activity(pauline->lc, LinphonePresenceActivityAway, NULL));