From 5776ce87d7f7d706705a5dd84ef34274d290ec47 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Mon, 23 Aug 2021 11:32:20 -0700 Subject: [PATCH] auto-t: testSAQuery remove ungraceful restart Instead the same effect can be seen by just ifdown/ifup the interface. --- autotests/testSAQuery/connection_test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autotests/testSAQuery/connection_test.py b/autotests/testSAQuery/connection_test.py index 3a66d118..03280d0e 100644 --- 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)