commit ce5e1e1933dbb11c503702ca0ee7a3d0f142ff4b
parent 0c277e442ed9b966ba4b13fc7ee09131b8898876
Author: James Prestwood <prestwoj@gmail.com>
Date: Wed, 3 Feb 2021 13:00:58 -0800
auto-t: testFT-PSK-roam wait for connected
Rather than assert its better to wait for a connected
state.
Diffstat:
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
@@ -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)