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
belle-sip
Commits
a574d590
Commit
a574d590
authored
Feb 28, 2013
by
jehan
Browse files
fix resolver tester
parent
d065a2d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tester/belle_sip_resolver_tester.c
tester/belle_sip_resolver_tester.c
+3
-3
No files found.
tester/belle_sip_resolver_tester.c
View file @
a574d590
...
...
@@ -141,14 +141,14 @@ static void ipv4_a_query_send_failure(void) {
/* IPv4 A query timeout */
static
void
ipv4_a_query_timeout
(
void
)
{
int
timeout
=
1
;
endpoint_t
*
client
=
create_endpoint
();
CU_ASSERT_PTR_NOT_NULL_FATAL
(
client
);
belle_sip_stack_set_dns_timeout
(
client
->
stack
,
timeout
);
belle_sip_stack_set_dns_timeout
(
client
->
stack
,
0
);
client
->
resolver_id
=
belle_sip_resolve
(
client
->
stack
,
"toto.com"
,
SIP_PORT
,
AF_INET
,
resolve_done
,
client
,
belle_sip_stack_get_main_loop
(
client
->
stack
));
CU_ASSERT_NOT_EQUAL
(
client
->
resolver_id
,
0
);
CU_ASSERT_TRUE
(
wait_for
(
client
->
stack
,
&
client
->
resolve_done
,
1
,
timeout
*
200
));
CU_ASSERT_TRUE
(
wait_for
(
client
->
stack
,
&
client
->
resolve_done
,
1
,
200
));
CU_ASSERT_PTR_EQUAL
(
client
->
result
,
NULL
);
CU_ASSERT_EQUAL
(
client
->
resolve_ko
,
1
);
destroy_endpoint
(
client
);
...
...
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