From: Jouni Malinen Date: Tue, 12 Mar 2019 15:31:40 +0000 (+0200) Subject: tests: Make sae_anti_clogging_during_attack more robust X-Git-Tag: hostap_2_8~241 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1983aa72c37e1bda48150ed750fc2354e9d14eb;p=thirdparty%2Fhostap.git tests: Make sae_anti_clogging_during_attack more robust Accept a smaller number of token responses in second round to avoid failing this test case as frequently. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_sae.py b/tests/hwsim/test_sae.py index c8e06c7e2..85927d757 100644 --- a/tests/hwsim/test_sae.py +++ b/tests/hwsim/test_sae.py @@ -1505,7 +1505,7 @@ def run_sae_anti_clogging_during_attack(dev, apdev): count += 1 if count == 10: break - if count < 10: + if count < 5: raise Exception("Too few token responses in second round: %d" % count) dev[0].connect("test-sae", psk="12345678", key_mgmt="SAE",