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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user