Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
49021d00
Commit
49021d00
authored
Oct 11, 2019
by
Simon Morlat
Browse files
Fix test failing sometimes.
parent
0506aa2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
tester/eventapi_tester.c
tester/eventapi_tester.c
+7
-3
No files found.
tester/eventapi_tester.c
View file @
49021d00
...
...
@@ -222,6 +222,9 @@ static void subscribe_test_manually_refreshed(void){
subscribe_test_with_args
(
TRUE
,
ManualRefresh
);
}
/* This test has LeaksMemory attribute due to the brutal disconnection of pauline, followed by core destruction.
* TODO: fix it.
*/
static
void
subscribe_loosing_dialog
(
void
)
{
#ifdef WIN32
/*Unfortunately this test doesn't work on windows due to the way closed TCP ports behave.
...
...
@@ -260,12 +263,13 @@ static void subscribe_loosing_dialog(void) {
/* now pauline looses internet connection and reboots */
linphone_core_set_network_reachable
(
pauline
->
lc
,
FALSE
);
/*let expire the incoming subscribe received by pauline */
BC_ASSERT_TRUE
(
wait_for_list
(
lcs
,
&
pauline
->
stat
.
number_of_LinphoneSubscriptionTerminated
,
1
,
5000
));
lcs
=
bctbx_list_remove
(
lcs
,
pauline
->
lc
);
linphone_core_manager_destroy
(
pauline
);
pauline
=
linphone_core_manager_new
(
"pauline_tcp_rc"
);
lcs
=
bctbx_list_append
(
lcs
,
pauline
->
lc
);
/*let expire the incoming subscribe received by pauline */
BC_ASSERT_TRUE
(
wait_for_list
(
lcs
,
NULL
,
0
,
5000
));
/* Marie will retry the subscription.
* She will first receive a 503 Service unavailable from flexisip thanks the ICMP error returned by the no longer existing Pauline.
...
...
@@ -483,7 +487,7 @@ test_t event_tests[] = {
TEST_ONE_TAG
(
"Subscribe terminated by subscriber"
,
subscribe_test_terminated_by_subscriber
,
"presence"
),
TEST_ONE_TAG
(
"Subscribe with custom headers"
,
subscribe_test_with_custom_header
,
"presence"
),
TEST_ONE_TAG
(
"Subscribe refreshed"
,
subscribe_test_refreshed
,
"presence"
),
TEST_
ONE
_TAG
(
"Subscribe loosing dialog"
,
subscribe_loosing_dialog
,
"presence"
),
TEST_
TWO
_TAG
S
(
"Subscribe loosing dialog"
,
subscribe_loosing_dialog
,
"presence"
,
"LeaksMemory"
),
TEST_ONE_TAG
(
"Subscribe with io error"
,
subscribe_with_io_error
,
"presence"
),
TEST_ONE_TAG
(
"Subscribe manually refreshed"
,
subscribe_test_manually_refreshed
,
"presence"
),
TEST_ONE_TAG
(
"Subscribe terminated by notifier"
,
subscribe_test_terminated_by_notifier
,
"presence"
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment