mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-19 11:09:25 +01:00
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:
parent
ae4b361f79
commit
7cc8111817
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user