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 <quic_jouni@quicinc.com>
This commit is contained in:
parent
1d08b238cb
commit
ee3567d659
2 changed files with 2 additions and 2 deletions
|
@ -1031,7 +1031,7 @@ def _test_scan_dfs(dev, apdev, params):
|
||||||
|
|
||||||
if "OK" not in dev[0].request("SCAN"):
|
if "OK" not in dev[0].request("SCAN"):
|
||||||
raise Exception("SCAN command failed")
|
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:
|
if ev is None:
|
||||||
raise Exception("Scan did not complete")
|
raise Exception("Scan did not complete")
|
||||||
|
|
||||||
|
|
|
@ -1142,7 +1142,7 @@ class WpaSupplicant:
|
||||||
if "eap" in kwargs:
|
if "eap" in kwargs:
|
||||||
self.connect_network(id, timeout=20)
|
self.connect_network(id, timeout=20)
|
||||||
else:
|
else:
|
||||||
self.connect_network(id)
|
self.connect_network(id, timeout=15)
|
||||||
else:
|
else:
|
||||||
self.dump_monitor()
|
self.dump_monitor()
|
||||||
self.select_network(id)
|
self.select_network(id)
|
||||||
|
|
Loading…
Add table
Reference in a new issue