1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-05 19:15:32 +00:00

sip: provider: Don't warn when trying to add account multiple times

A g_debug() will suffice which will let us get rid of g_test_expect_message() to
as we don't need to guard against the warning anymore.
This commit is contained in:
Evangelos Ribeiro Tzaras 2021-05-05 20:50:44 +02:00
parent 9c91a33604
commit dde4bd8abf
2 changed files with 2 additions and 3 deletions

View file

@ -469,7 +469,8 @@ calls_sip_provider_add_origin (CallsSipProvider *self,
g_autofree char *name = NULL;
g_object_get (credentials, "name", &name, NULL);
g_warning ("Cannot add credentials with name '%s' multiple times", name);
/* This could be a INFO level log once we have improved logging */
g_debug ("Cannot add credentials with name '%s' multiple times", name);
return NULL;
}

View file

@ -72,8 +72,6 @@ test_account_basic ()
g_object_unref (origin_bob);
/* Try adding credentials a second time */
g_test_expect_message ("CallsSipProvider", G_LOG_LEVEL_WARNING,
"Cannot add credentials with name 'Alice' multiple times");
g_assert_false (calls_account_provider_add_account (acc_provider, alice));
/* Remove credentials */