3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-10 14:09:22 +01:00

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

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)