mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 02:02:33 +01:00
auto-t: fix FT over DS test to wait for connected
Due to timing this test sometimes does not pass because it was just asserting on the device state rather than waiting for a change. This generally worked but not always.
This commit is contained in:
parent
ccf265b943
commit
e402a11f06
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user