From 89a3c367147f09f102b796bbabdde4d754275b15 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 18 Jan 2023 15:55:10 +0100 Subject: 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 --- tests/network/nmtst-helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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) } -- cgit v1.2.1