Commit c9c0a3e5 authored by Pekka Pessi's avatar Pekka Pessi

test_simple.c: fixed race condition in test_simple.c

darcs-hash:20080303162317-65a35-6f0c8068bb3a4dce7600211b80e23a794d00419c.gz
parent 5ea0f2a5
......@@ -727,7 +727,10 @@ int test_subscribe_notify(struct context *ctx)
TEST_1(e = es); TEST_E(e->data->e_event, nua_r_subscribe);
TEST_1(e->data->e_status == 202 || e->data->e_status == 200);
TEST_1(tl_find(e->data->e_tags, nutag_substate));
TEST(tl_find(e->data->e_tags, nutag_substate)->t_value, nua_substate_pending);
if (es == a->events->head)
TEST(tl_find(e->data->e_tags, nutag_substate)->t_value, nua_substate_embryonic);
else
TEST(tl_find(e->data->e_tags, nutag_substate)->t_value, nua_substate_pending);
TEST_1(sip = sip_object(e->data->e_msg));
TEST_1(sip->sip_expires);
TEST_1(sip->sip_expires->ex_delta <= 333);
......
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