Commit c6c91406 authored by Pekka Pessi's avatar Pekka Pessi

test_register.c: fixed authentication caching issue

darcs-hash:20071120164706-88462-1ad0193c6e4cfd8c72cd443ccd8ad9b5b1ba276a.gz
parent e3100055
......@@ -1018,6 +1018,15 @@ int test_unregister(struct context *ctx)
TEST_1(e = e->next);
TEST_E(e->data->e_event, nua_r_unregister);
}
if (e->data->e_status == 401) {
TEST_1(!e->next);
free_events_in_list(ctx, c->events);
AUTHENTICATE(c, NULL, c->reg->nh,
NUTAG_AUTH("Digest:\"test-proxy\":charlie:secret"), TAG_END());
run_c_until(ctx, -1, save_until_final_response);
TEST_1(e = c->events->head);
TEST_E(e->data->e_event, nua_r_unregister);
}
TEST(e->data->e_status, 200);
TEST_1(sip = sip_object(e->data->e_msg));
TEST_1(sip->sip_from->a_url->url_user);
......
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