mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +01:00
auto-t: fix testAP
As with other tests, wait on device state instead of the network object. The connectivity test was also changed to not check for group traffic since AP does not negotiate the IGTK at this time.
This commit is contained in:
parent
7b933db78a
commit
b437bfaced
@ -24,8 +24,8 @@ class Test(unittest.TestCase):
|
||||
|
||||
ordered_network.network_object.connect()
|
||||
|
||||
condition = 'obj.connected'
|
||||
wd.wait_for_object_condition(ordered_network.network_object, condition)
|
||||
condition = 'obj.state == DeviceState.connected'
|
||||
wd.wait_for_object_condition(dev, condition)
|
||||
|
||||
wd.unregister_psk_agent(psk_agent)
|
||||
|
||||
@ -74,12 +74,11 @@ class Test(unittest.TestCase):
|
||||
|
||||
networks['TestAP2'].network_object.connect()
|
||||
|
||||
condition = 'obj.connected'
|
||||
wd.wait_for_object_condition(networks['TestAP2'].network_object,
|
||||
condition)
|
||||
condition = 'obj.state == DeviceState.connected'
|
||||
wd.wait_for_object_condition(dev2, condition)
|
||||
|
||||
testutil.test_iface_operstate(dev2.name)
|
||||
testutil.test_ifaces_connected(dev1.name, dev2.name)
|
||||
testutil.test_ifaces_connected(dev1.name, dev2.name, group=False)
|
||||
|
||||
wd.unregister_psk_agent(psk_agent)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user