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:
parent
0682ddad37
commit
2cb3b7cf2e
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user