auto-t: testFT-PSK-roam wait for connected
PATCH 1/1 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(-)
autotests/testFT-PSK-roam/connection_test.py +2 -1
@@ -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)
Signature · 1 line
2.26.2
Denis Kenzior
AppliedHi James,
Quoted 6 lines · James Prestwood
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(-)
Applied, thanks.
Regards,
-Denis