]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix sae_anti_clogging_during_attack with UML time-travel=inf-cpu
authorJouni Malinen <j@w1.fi>
Mon, 27 May 2019 20:00:20 +0000 (23:00 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 27 May 2019 20:11:47 +0000 (23:11 +0300)
Need to add short break to allow time-travel=inf-cpu case to allow the
connection events to be processed.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_sae.py

index 845561fb6c965e0998c9b1324899143b78b1ccac..57079df06dec4ed51e56834dc636b4e2bebd0ac9 100644 (file)
@@ -1638,6 +1638,7 @@ def run_sae_anti_clogging_during_attack(dev, apdev):
                 connected1 = True
         if connected0 and connected1:
             break
+        time.sleep(0.00000001)
     if not connected0:
         raise Exception("Real station(0) did not get connected")
     if not connected1: