]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make EAP-IKEv2 protocol tests more robust
authorJouni Malinen <j@w1.fi>
Sat, 16 Dec 2023 20:37:36 +0000 (22:37 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 16 Dec 2023 20:37:36 +0000 (22:37 +0200)
Wait a bit more between removal of the network and the next attempt to
avoid race conditions.

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

index 655c3d0716fd848b1d2e272840b8c54d8097fada..a1270ac3c6b95d09467fd6cf0590e5b9db8f04f9 100644 (file)
@@ -6484,6 +6484,10 @@ def run_eap_ikev2_connect(dev):
     dev.request("REMOVE_NETWORK all")
     if not ev or "CTRL-EVENT-DISCONNECTED" not in ev:
         dev.wait_disconnected()
+    ev = dev.wait_event(["CTRL-EVENT-NETWORK-REMOVED"], timeout=1)
+    if ev is None:
+        raise Exception("Network removal not reported")
+    time.sleep(0.01)
     dev.dump_monitor()
 
 def test_eap_proto_ikev2_errors_server(dev, apdev):