From: Jouni Malinen Date: Mon, 13 Jan 2014 18:47:01 +0000 (+0200) Subject: tests: Double the connection timeout for EAP cases X-Git-Tag: hostap_2_1~132 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7559ad7af618b18836ed1acb3f028583e123c333;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index f35d40725..79aee2655 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/tests/hwsim/wpasupplicant.py @@ -220,10 +220,10 @@ class WpaSupplicant: raise Exception("SELECT_NETWORK failed") return None - def connect_network(self, id): + def connect_network(self, id, timeout=10): self.dump_monitor() 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: raise Exception("Association with the AP timed out") self.dump_monitor() @@ -663,7 +663,10 @@ class WpaSupplicant: if only_add_network: return id if wait_connect: - self.connect_network(id) + if eap: + self.connect_network(id, timeout=20) + else: + self.connect_network(id) else: self.dump_monitor() self.select_network(id)