mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-19 08:58:28 +02:00
libnm/tests: fix test for nm_client_add_and_activate_connection_async()
nm_client_add_and_activate_connection_async() must be completed by
nm_client_add_and_activate_connection_finish().
Fixes: be8060f42f ('libnm: add an object-creation-failed test')
This commit is contained in:
parent
86097cc2e8
commit
256ba8c4cd
1 changed files with 1 additions and 1 deletions
|
|
@ -1188,7 +1188,7 @@ activate_failed_cb (GObject *object,
|
|||
NMActiveConnection *ac;
|
||||
GError *error = NULL;
|
||||
|
||||
ac = nm_client_activate_connection_finish (client, result, &error);
|
||||
ac = nm_client_add_and_activate_connection_finish (client, result, &error);
|
||||
g_assert (ac == NULL);
|
||||
g_assert_error (error, NM_CLIENT_ERROR, NM_CLIENT_ERROR_OBJECT_CREATION_FAILED);
|
||||
g_clear_error (&error);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue