From 298eb0792e3068b87b7ac198d71a816f8c567754 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 27 May 2019 22:53:53 +0300 Subject: [PATCH] tests: Give more time in ap_wpa2_psk_ext_delayed_ptk_rekey for UML Waiting for exactly one second for a one second timeout with time-travel=inf-cpu is not exactly robust, so increase that wait to be able to see the last EAPOL-Key TX attempt from hostapd. Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_psk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hwsim/test_ap_psk.py b/tests/hwsim/test_ap_psk.py index 3be68e830..8fbd5c4b3 100644 --- a/tests/hwsim/test_ap_psk.py +++ b/tests/hwsim/test_ap_psk.py @@ -1195,7 +1195,7 @@ def test_ap_wpa2_psk_ext_delayed_ptk_rekey(dev, apdev): # Check if any more EAPOL-Key frames are seen. If the second 4-way handshake # was accepted, there would be no more EAPOL-Key frames. If the Replay # Counters were rejected, there would be a retransmitted msg 1/4 here. - ev = hapd.wait_event(["EAPOL-TX"], timeout=1) + ev = hapd.wait_event(["EAPOL-TX"], timeout=1.1) if ev is None: raise Exception("Did not see EAPOL-TX from hostapd in the end (expected msg 1/4)") keyinfo = ev.split(' ')[2][10:14]