libnm/tests: connection might not be gone at the time manager signals removal

The assumption is not too useful to the library user anyway -- it could easily
be that there's some other link to the object in the object tree.

More importantly, when the objects are managed by the object manager,
we don't destroy the object until we see it actually removed on the
D-Bus. That makes more sense anyway.
This commit is contained in:
Lubomir Rintel
2016-10-08 13:36:05 +02:00
parent 7007c9853c
commit ed21a820a7

View File

@@ -336,9 +336,10 @@ test_remove_connection (void)
do {
now = time (NULL);
g_main_context_iteration (NULL, FALSE);
} while ((done == FALSE) && (now - start < 5));
if (done && !remote)
break;
} while (now - start < 5);
g_assert (done == TRUE);
g_assert (!remote);
/* Ensure NMClient no longer has the connection */