auto-t: fix random failures in testEAP-MSCHAPV2

Its difficult to know 100%, but this random test failures appeared
to be caused by two issues. One was that get_ordered_network is being
checked for None, when it was returning a zero length array. Because
of this the scanning block was never executed in any cases. This was
fixed in the previous commit. The other issue was the disconnect at
the start of the tests. The disconnect will cause all pending scans
to cancel, which appeared to cause the scanning block below to be
skipped over quickly if the timing was right. Then, afterwards,
getting a single network failed because scanning was not complete.
This commit is contained in:
James Prestwood 2019-10-28 12:52:00 -07:00 committed by Denis Kenzior
parent fc9342f751
commit 14df50a0ab
1 changed files with 0 additions and 5 deletions

View File

@ -19,11 +19,6 @@ class Test(unittest.TestCase):
devices = wd.list_devices(1)
device = devices[0]
try:
device.disconnect()
except:
pass
condition = 'not obj.scanning'
wd.wait_for_object_condition(device, condition)