From: Jouni Malinen Date: Thu, 28 Jul 2022 13:41:23 +0000 (+0300) Subject: tests: Add more time for scan/connection X-Git-Tag: hostap_2_11~1783 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee3567d659f64ff0428cd18bafa0cd98554f53c7;p=thirdparty%2Fhostap.git tests: Add more time for scan/connection It looks like some test cases could fail due to timeouts since the 10 second wait may not be sufficient to cover some cases where 6 GHz channels get scanned. Increase the timeouts to avoid hitting such cases. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_scan.py b/tests/hwsim/test_scan.py index 5beec4f32..15acfe3ca 100644 --- a/tests/hwsim/test_scan.py +++ b/tests/hwsim/test_scan.py @@ -1031,7 +1031,7 @@ def _test_scan_dfs(dev, apdev, params): if "OK" not in dev[0].request("SCAN"): raise Exception("SCAN command failed") - ev = dev[0].wait_event(["CTRL-EVENT-SCAN-RESULTS"]) + ev = dev[0].wait_event(["CTRL-EVENT-SCAN-RESULTS"], timeout=15) if ev is None: raise Exception("Scan did not complete") diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index a1f63c36e..fe1892785 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/tests/hwsim/wpasupplicant.py @@ -1142,7 +1142,7 @@ class WpaSupplicant: if "eap" in kwargs: self.connect_network(id, timeout=20) else: - self.connect_network(id) + self.connect_network(id, timeout=15) else: self.dump_monitor() self.select_network(id)