mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-19 05:28:33 +02:00
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:
parent
7007c9853c
commit
ed21a820a7
1 changed files with 3 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue