auto-t: Use changed get_ordered_network API

Rely on internal scan and wait implementation of get_ordered_network
to obtain the known networks
This commit is contained in:
Tim Kourt 2020-05-07 12:20:22 -07:00 committed by Denis Kenzior
parent ae4b361f79
commit 7cc8111817
2 changed files with 2 additions and 20 deletions

View File

@ -14,17 +14,8 @@ import testutil
class Test(unittest.TestCase):
def client_connect(self, wd, dev):
condition = 'not obj.scanning'
wd.wait_for_object_condition(dev, condition)
if not dev.get_ordered_networks():
dev.scan()
condition = 'obj.scanning'
wd.wait_for_object_condition(dev, condition)
condition = 'not obj.scanning'
wd.wait_for_object_condition(dev, condition)
ordered_network = dev.get_ordered_network('TestAP1')
ordered_network = dev.get_ordered_network('TestAP1', True)
self.assertEqual(ordered_network.type, NetworkType.psk)

View File

@ -14,17 +14,8 @@ import testutil
class Test(unittest.TestCase):
def client_connect(self, wd, dev):
condition = 'not obj.scanning'
wd.wait_for_object_condition(dev, condition)
if not dev.get_ordered_networks():
dev.scan()
condition = 'obj.scanning'
wd.wait_for_object_condition(dev, condition)
condition = 'not obj.scanning'
wd.wait_for_object_condition(dev, condition)
ordered_network = dev.get_ordered_network('TestAP1')
ordered_network = dev.get_ordered_network('TestAP1', True)
self.assertEqual(ordered_network.type, NetworkType.psk)