[PATCH 10/17] tests: blocked rekey: give slightly more time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Johannes Berg <johannes.berg@xxxxxxxxx>

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@xxxxxxxxx>
---
 tests/hwsim/test_ap_psk.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/hwsim/test_ap_psk.py b/tests/hwsim/test_ap_psk.py
index aac104bb7cd6..4d493cb3c6ef 100644
--- a/tests/hwsim/test_ap_psk.py
+++ b/tests/hwsim/test_ap_psk.py
@@ -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")
 
-- 
2.41.0


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux