auto-t: do a full scan when getting network

This ensures the network will be scanned for again if not found.
This commit is contained in:
James Prestwood 2022-03-28 10:28:39 -07:00 committed by Denis Kenzior
parent 12c77ef647
commit f717480c18
1 changed files with 1 additions and 12 deletions

View File

@ -20,18 +20,7 @@ class Test(unittest.TestCase):
if not autoconnect:
if not connect_hidden:
condition = 'not obj.scanning'
wd.wait_for_object_condition(device, condition)
device.scan()
condition = 'obj.scanning'
wd.wait_for_object_condition(device, condition)
condition = 'not obj.scanning'
wd.wait_for_object_condition(device, condition)
network = device.get_ordered_network('transition', scan_if_needed=False)
network = device.get_ordered_network('transition', full_scan=True)
network.network_object.connect()
else: