diff --git a/autotests/testFT-PSK-over-DS/connection_test.py b/autotests/testFT-PSK-over-DS/connection_test.py index 28a045ef..b6cad5a4 100644 --- a/autotests/testFT-PSK-over-DS/connection_test.py +++ b/autotests/testFT-PSK-over-DS/connection_test.py @@ -88,7 +88,9 @@ 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)