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:
James Prestwood 2020-11-24 09:03:57 -08:00 committed by Denis Kenzior
parent ccf265b943
commit e402a11f06
1 changed files with 3 additions and 1 deletions

View File

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