Commit 747397a0 authored by Simon Morlat's avatar Simon Morlat
Browse files

Fix a few tests.

parent ff971c0f
......@@ -49,6 +49,9 @@ void AuthStack::pushAuthRequested(const std::shared_ptr<AuthInfo> &ai){
void AuthStack::authFound(const std::shared_ptr<AuthInfo> &ai){
lInfo() << "AuthStack::authFound() for " << ai->toString();
mAuthFound.push_back(ai);
if (!mTimer){
mTimer = mCore.getSal()->createTimer(&onTimeout, this, 0, "authentication requests");
}
}
void AuthStack::notifyAuthFailures(){
......
......@@ -554,7 +554,7 @@ static void authenticated_register_with_wrong_late_credentials(void){
counters = get_stats(lcm->lc);
register_with_refresh_base_3(lcm->lc,FALSE,auth_domain,route,TRUE,transport,LinphoneRegistrationFailed);
linphone_transports_unref(transport);
BC_ASSERT_EQUAL(counters->number_of_auth_info_requested,2, int, "%d");
BC_ASSERT_TRUE(wait_for(lcm->lc, NULL, &counters->number_of_auth_info_requested, 2));
BC_ASSERT_EQUAL(counters->number_of_LinphoneRegistrationFailed,2, int, "%d");
BC_ASSERT_EQUAL(counters->number_of_LinphoneRegistrationProgress,2, int, "%d");
test_password=saved_test_passwd;
......
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