[gnome-control-center/wip/benzea/ci: 27/28] tests/network: Also wait for ConnectionAdded signal
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/benzea/ci: 27/28] tests/network: Also wait for ConnectionAdded signal
- Date: Mon, 28 May 2018 22:15:54 +0000 (UTC)
commit e6f917acebe29a03b2cee8032997140e2b8cb72d
Author: Benjamin Berg <bberg redhat com>
Date: Thu May 24 18:45:12 2018 +0200
tests/network: Also wait for ConnectionAdded signal
Also wait for the connection-added signal instead of only waiting for the
property notification for the connections. While not neccessary, this is
more correct.
tests/network/test-network-panel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/network/test-network-panel.c b/tests/network/test-network-panel.c
index 13d7eb298..7e0fd3c1d 100644
--- a/tests/network/test-network-panel.c
+++ b/tests/network/test-network-panel.c
@@ -273,7 +273,7 @@ test_connection_add (NetworkPanelFixture *fixture,
nm_client_add_connection_async (fixture->client, conn, TRUE, NULL, add_cb, &info);
info.other_remaining = 1;
- WAIT_CLIENT(fixture->client, 1, NM_CLIENT_CONNECTIONS);
+ WAIT_CLIENT(fixture->client, 2, NM_CLIENT_CONNECTIONS, NM_CLIENT_CONNECTION_ADDED);
WAIT_FINISHED(5)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]