Commit dd8186db authored by Mickaël Turnel's avatar Mickaël Turnel

Add a waiting time for some mDNS test to be sure no registers are still up

parent 9dbf913f
......@@ -609,8 +609,8 @@ static void mdns_query_no_result(void) {
client = create_endpoint();
// Wait some time to be sure that the services from last test are stopped
wait_for(client->stack, &client->resolve_done, 1, 2000);
/* Wait some time to be sure that the services from last test are stopped */
wait_for(client->stack, &client->resolve_done, 1, 1000);
client->resolver_ctx = belle_sip_stack_resolve(client->stack, "sip", "tcp", "test.linphone.local", 5060, AF_INET, a_resolve_done, client);
BC_ASSERT_PTR_NOT_NULL(client->resolver_ctx);
......@@ -669,6 +669,9 @@ static void mdns_queries(void) {
client = create_endpoint();
/* Wait some time to be sure that the services from last test are stopped */
wait_for(client->stack, &client->resolve_done, 1, 1000);
reg = belle_sip_mdns_register("sip", "tcp", "test.linphone.local", NULL, 5060, 10, 100, 3600, mdns_register_callback, &register_error);
BC_ASSERT_PTR_NOT_NULL(reg);
BC_ASSERT_TRUE(wait_for(client->stack, &register_error, 0, 5000));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment