summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2023-01-18 15:55:10 +0100
committerBastien Nocera <hadess@hadess.net>2023-01-18 16:56:53 +0100
commit89a3c367147f09f102b796bbabdde4d754275b15 (patch)
tree8a57ebf118ce1b168c2bf58e285f3e4a65124998 /tests
parent94c1c64a44d914ccab6527e2981dfc3a758ff305 (diff)
downloadgnome-control-center-89a3c367147f09f102b796bbabdde4d754275b15.tar.gz
tests: Fix possible race in test_connection_multi_add_activate()
Wait for the "state" property to change as well as the "state-reason". We only update the UI when the former arrives, but the test was working correctly on faster machines, making it difficult to pinpoint. Closes: #1768
Diffstat (limited to 'tests')
-rw-r--r--tests/network/nmtst-helpers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/network/nmtst-helpers.h b/tests/network/nmtst-helpers.h
index 02c6a4395..495d27f36 100644
--- a/tests/network/nmtst-helpers.h
+++ b/tests/network/nmtst-helpers.h
@@ -252,7 +252,7 @@ nmtst_set_device_state (NMTstcServiceInfo *sinfo, NMDevice *device, NMDeviceStat
&error);
g_assert_no_error (error);
- WAIT_DEVICE(device, 1, "state-reason")
+ WAIT_DEVICE(device, 2, "state-reason", "state")
WAIT_FINISHED(5)
}