commit 5776ce87d7f7d706705a5dd84ef34274d290ec47
parent f6683bab753f59a0339a0c141500ad8c924188d6
Author: James Prestwood <prestwoj@gmail.com>
Date: Mon, 23 Aug 2021 11:32:20 -0700
auto-t: testSAQuery remove ungraceful restart
Instead the same effect can be seen by just ifdown/ifup the interface.
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/autotests/testSAQuery/connection_test.py b/autotests/testSAQuery/connection_test.py
@@ -38,7 +38,10 @@ class Test(unittest.TestCase):
# Make AP go down ungracefully, when hostapd comes back up it should
# send an unprotected disassociate frame so the client will re-auth.
# This will kick off the SA Query procedure
- hostapd.ungraceful_restart()
+ hostapd.interface.set_interface_state('down')
+ hostapd.interface.set_interface_state('up')
+
+ hostapd.wait_for_event('INTERFACE-ENABLED')
condition = 'not obj.connected'
wd.wait_for_object_condition(ordered_network.network_object, condition)