3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-29 13:59:24 +01:00

auto-t: add explicit scan and completion check

The occasional race conditions used to cause the test to fail
due to the empty list of ordered networks
This commit is contained in:
Tim Kourt 2018-10-02 12:02:17 -07:00 committed by Denis Kenzior
parent 0682ddad37
commit 2cb3b7cf2e

View File

@ -14,6 +14,11 @@ class Test(unittest.TestCase):
self.assertIsNotNone(devices) self.assertIsNotNone(devices)
device = devices[0] device = devices[0]
device.scan()
condition = 'obj.scanning'
wd.wait_for_object_condition(device, condition)
condition = 'not obj.scanning' condition = 'not obj.scanning'
wd.wait_for_object_condition(device, condition) wd.wait_for_object_condition(device, condition)