From: Jouni Malinen Date: Fri, 10 Feb 2023 11:11:54 +0000 (+0200) Subject: tests: Make pmksa_cache_and_cui more robust X-Git-Tag: hostap_2_11~1316 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eff82f93af3f5bbd7314a6af4955d73929b76e89;p=thirdparty%2Fhostap.git tests: Make pmksa_cache_and_cui more robust Make sure hostapd has had time to complete 4-way handshake processing before initiating reauthentication from wpa_supplicant. There is a small window for race condition here when testing with UML and time travel. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_pmksa_cache.py b/tests/hwsim/test_pmksa_cache.py index 10d76a394..65ef5d816 100644 --- a/tests/hwsim/test_pmksa_cache.py +++ b/tests/hwsim/test_pmksa_cache.py @@ -422,6 +422,7 @@ def test_pmksa_cache_and_cui(dev, apdev): raise Exception("No PMKSA cache entry found") if pmksa['pmkid'] != pmksa1b['pmkid']: raise Exception("Unexpected PMKID change for AP1") + hapd.wait_sta() dev[0].request("REAUTHENTICATE") ev = dev[0].wait_event(["CTRL-EVENT-EAP-SUCCESS"], timeout=10)