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 commit 256ba8c4cd)
This commit is contained in:
Thomas Haller 2019-10-04 12:05:50 +02:00
parent df6f73c274
commit 23d9f55c10
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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);