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
1 changed files with 5 additions and 0 deletions

View File

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