From bec0cabde4bcad4eaecb6e635c5e1047c6cad4d6 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Tue, 19 Oct 2021 12:02:32 -0700 Subject: [PATCH] auto-t: add missing ocv option and wait to testChannelSwitch This should have been added to the original test --- autotests/testChannelSwitch/connection_test.py | 4 ++++ autotests/testChannelSwitch/ssidCCMP.conf | 1 + 2 files changed, 5 insertions(+) diff --git a/autotests/testChannelSwitch/connection_test.py b/autotests/testChannelSwitch/connection_test.py index e5421c69..03d24a77 100644 --- a/autotests/testChannelSwitch/connection_test.py +++ b/autotests/testChannelSwitch/connection_test.py @@ -39,6 +39,10 @@ class Test(unittest.TestCase): testutil.test_ifaces_connected() hapd.chan_switch(2) + # Make sure the SA Query is verified and IWD doesn't disconnect + with self.assertRaises(TimeoutError): + condition = 'obj.state == DeviceState.disconnected' + wd.wait_for_object_condition(device, condition, 4) condition = 'obj.state == DeviceState.connected' wd.wait_for_object_condition(device, condition) diff --git a/autotests/testChannelSwitch/ssidCCMP.conf b/autotests/testChannelSwitch/ssidCCMP.conf index 074e8228..438b9955 100644 --- a/autotests/testChannelSwitch/ssidCCMP.conf +++ b/autotests/testChannelSwitch/ssidCCMP.conf @@ -5,3 +5,4 @@ ssid=ssidCCMP wpa=2 wpa_pairwise=CCMP wpa_passphrase=secret123 +ocv=1