auto-t: testFT-PSK-roam wait for connected

Rather than assert its better to wait for a connected
state.
This commit is contained in:
James Prestwood 2021-02-03 13:00:58 -08:00 committed by Denis Kenzior
parent 0c277e442e
commit ce5e1e1933
1 changed files with 2 additions and 1 deletions

View File

@ -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)