Commit 529d03da authored by Pekka Pessi's avatar Pekka Pessi

check_nua: fiddled with some timing issues

darcs-hash:20090121203232-db55f-87f2b58fd8c57c8375c591d3ae2ccc63fcc93866.gz
parent 9c98dd14
......@@ -244,6 +244,8 @@ START_TEST(SIP_CC_OE_CE_TI_008)
fail_unless(s2_check_callstate(nua_callstate_ready));
fail_unless(s2_check_request(SIP_METHOD_ACK));
s2_fast_forward(5);
respond_with_sdp(invite, d1, SIP_200_OK, TAG_END());
fail_unless(s2_check_request(SIP_METHOD_ACK));
......
......@@ -2391,7 +2391,7 @@ START_TEST(bye_4_2_2)
s2_fast_forward(300);
invite_timer_round(nh, "300", NULL);
s2_fast_forward(300);
s2_fast_forward(140);
nua_bye(nh, TAG_END());
......@@ -2403,7 +2403,7 @@ START_TEST(bye_4_2_2)
s2_free_message(bye);
fail_unless(s2_check_event(nua_r_bye, 407));
s2_fast_forward(300);
s2_fast_forward(160);
nua_authenticate(nh, NUTAG_AUTH(s2_auth_credentials), TAG_END());
bye = s2_wait_for_request(SIP_METHOD_BYE);
......
......@@ -125,6 +125,8 @@ void s2_fast_forward(unsigned long seconds)
_su_time = _su_time_fast_forwarder;
time_offset += seconds;
su_root_step(s2->root, 0);
}
/* -- NUA events -------------------------------------------------------- */
......
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