Commit d77e344d authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Fix call log sqlite storage test

parent e47839c3
......@@ -4913,9 +4913,9 @@ static void call_logs_sqlite_storage() {
linphone_core_set_call_logs_database_path(marie->lc, logs_db);
BC_ASSERT_TRUE(linphone_core_get_call_history_size(marie->lc) == 0);
BC_ASSERT_TRUE(call(pauline,marie));
wait_for_until(pauline->lc, marie->lc, NULL, 5, 1000);
end_call(pauline, marie);
BC_ASSERT_TRUE(call(marie, pauline));
wait_for_until(marie->lc, pauline->lc, NULL, 5, 1000);
end_call(marie, pauline);
BC_ASSERT_TRUE(linphone_core_get_call_history_size(marie->lc) == 1);
logs = linphone_core_get_call_history_for_address(marie->lc, linphone_proxy_config_get_identity_address(linphone_core_get_default_proxy_config(pauline->lc)));
......@@ -4933,12 +4933,12 @@ static void call_logs_sqlite_storage() {
ms_list_free_with_data(logs, (void (*)(void*))linphone_call_log_unref);
BC_ASSERT_TRUE(linphone_core_get_call_history_size(marie->lc) == 0);
BC_ASSERT_TRUE(call(pauline,marie));
wait_for_until(pauline->lc, marie->lc, NULL, 5, 1000);
end_call(pauline, marie);
BC_ASSERT_TRUE(call(pauline,marie));
wait_for_until(pauline->lc, marie->lc, NULL, 5, 1000);
end_call(pauline, marie);
BC_ASSERT_TRUE(call(marie, pauline));
wait_for_until(marie->lc, pauline->lc, NULL, 5, 1000);
end_call(marie, pauline);
BC_ASSERT_TRUE(call(marie, pauline));
wait_for_until(marie->lc, pauline->lc, NULL, 5, 1000);
end_call(marie, pauline);
BC_ASSERT_TRUE(linphone_core_get_call_history_size(marie->lc) == 2);
linphone_core_delete_call_history(marie->lc);
......
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