]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Blocked rekey: Give slightly more time
authorJohannes Berg <johannes.berg@intel.com>
Mon, 25 Sep 2023 07:20:50 +0000 (09:20 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 28 Oct 2023 09:34:57 +0000 (12:34 +0300)
Due to scheduling changes, we don't always now succeed to reconnect in
exactly 1 second, it might take 1.01. Give it 1.1 for a bit more leeway,
it's not clear why it should be exactly 1 second anyway.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
tests/hwsim/test_ap_psk.py

index aac104bb7cd697ea0cb368a8418eaafdba00ec18..4d493cb3c6ef129c25ba89a29fe173194ed6b2f2 100644 (file)
@@ -250,7 +250,7 @@ def test_ap_wpa2_ptk_rekey_blocked_ap(dev, apdev):
         raise Exception("PTK rekey timed out")
     if "WPA: Key negotiation completed" in ev:
         raise Exception("No disconnect, PTK rekey succeeded")
-    ev = dev[0].wait_event(["WPA: Key negotiation completed"], timeout=1)
+    ev = dev[0].wait_event(["WPA: Key negotiation completed"], timeout=1.1)
     if ev is None:
         raise Exception("Reconnect too slow")
 
@@ -268,7 +268,7 @@ def test_ap_wpa2_ptk_rekey_blocked_sta(dev, apdev):
         raise Exception("PTK rekey timed out")
     if "WPA: Key negotiation completed" in ev:
         raise Exception("No disconnect, PTK rekey succeeded")
-    ev = dev[0].wait_event(["WPA: Key negotiation completed"], timeout=1)
+    ev = dev[0].wait_event(["WPA: Key negotiation completed"], timeout=1.1)
     if ev is None:
         raise Exception("Reconnect too slow")