summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2018-05-24 18:45:12 +0200
committerBenjamin Berg <bberg@redhat.com>2018-05-29 15:21:59 +0200
commit870b64b8482268cef15427280ead65fb25f89ca8 (patch)
tree35bcecb025688a44d7af831795e9903ab0dd7228 /tests
parent12555d62eb12492e569b8b5499f68aea036da68e (diff)
downloadgnome-control-center-870b64b8482268cef15427280ead65fb25f89ca8.tar.gz
tests: Also wait for ConnectionAdded signal from NetworkManager
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/network/test-network-panel.c2
1 files changed, 1 insertions, 1 deletions
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)