From ce5e1e1933dbb11c503702ca0ee7a3d0f142ff4b Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 3 Feb 2021 13:00:58 -0800 Subject: [PATCH] auto-t: testFT-PSK-roam wait for connected Rather than assert its better to wait for a connected state. --- autotests/testFT-PSK-roam/connection_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autotests/testFT-PSK-roam/connection_test.py b/autotests/testFT-PSK-roam/connection_test.py index 8e69fcd5..a7acf495 100644 --- a/autotests/testFT-PSK-roam/connection_test.py +++ b/autotests/testFT-PSK-roam/connection_test.py @@ -90,7 +90,8 @@ class Test(unittest.TestCase): condition = 'obj.state != DeviceState.roaming' wd.wait_for_object_condition(device, condition) - self.assertEqual(device.state, iwd.DeviceState.connected) + condition = 'obj.state == DeviceState.connected' + wd.wait_for_object_condition(device, condition) self.assertTrue(self.bss_hostapd[1].list_sta()) testutil.test_iface_operstate(device.name)