mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-31 01:04:03 -05:00
tests: Double the connection timeout for EAP cases
It looks like slow virtual machines may have issues to complete some EAP authentication cases (e.g., EAP-EKE in ap_ft_eap) within the 10 second timeout under load. Double the timeout to avoid incorrect test failures. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
c57c1ed6b3
commit
7559ad7af6
@ -220,10 +220,10 @@ class WpaSupplicant:
|
|||||||
raise Exception("SELECT_NETWORK failed")
|
raise Exception("SELECT_NETWORK failed")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def connect_network(self, id):
|
def connect_network(self, id, timeout=10):
|
||||||
self.dump_monitor()
|
self.dump_monitor()
|
||||||
self.select_network(id)
|
self.select_network(id)
|
||||||
ev = self.wait_event(["CTRL-EVENT-CONNECTED"], timeout=10)
|
ev = self.wait_event(["CTRL-EVENT-CONNECTED"], timeout=timeout)
|
||||||
if ev is None:
|
if ev is None:
|
||||||
raise Exception("Association with the AP timed out")
|
raise Exception("Association with the AP timed out")
|
||||||
self.dump_monitor()
|
self.dump_monitor()
|
||||||
@ -663,7 +663,10 @@ class WpaSupplicant:
|
|||||||
if only_add_network:
|
if only_add_network:
|
||||||
return id
|
return id
|
||||||
if wait_connect:
|
if wait_connect:
|
||||||
self.connect_network(id)
|
if eap:
|
||||||
|
self.connect_network(id, timeout=20)
|
||||||
|
else:
|
||||||
|
self.connect_network(id)
|
||||||
else:
|
else:
|
||||||
self.dump_monitor()
|
self.dump_monitor()
|
||||||
self.select_network(id)
|
self.select_network(id)
|
||||||
|
Loading…
Reference in New Issue
Block a user