mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-12 02:10:19 +01: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') (cherry picked from commit256ba8c4cd)
This commit is contained in:
parent
df6f73c274
commit
23d9f55c10
1 changed files with 1 additions and 1 deletions
|
|
@ -1140,7 +1140,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