From: Jouni Malinen Date: Sun, 11 Dec 2016 18:08:39 +0000 (+0200) Subject: tests: Increase timeout in wpas_mesh_password_mismatch X-Git-Tag: hostap_2_7~2038 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d283f7aeacf2e1c4f04b0f547bd67efc096204c3;p=thirdparty%2Fhostap.git tests: Increase timeout in wpas_mesh_password_mismatch There has been number of failures from this test case due to the MESH-SAE-AUTH-FAILURE event from dev[0] and dev[1] arriving couple of seconds after the one second timeout after the dev[2] events. This does not look like a real issue, so increase the timeout to five seconds to make this less likely to show false failures during testing. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wpas_mesh.py b/tests/hwsim/test_wpas_mesh.py index 29855a34f..795e0fe85 100644 --- a/tests/hwsim/test_wpas_mesh.py +++ b/tests/hwsim/test_wpas_mesh.py @@ -897,23 +897,26 @@ def test_wpas_mesh_password_mismatch(dev, apdev): ev = dev[2].wait_event(["MESH-SAE-AUTH-FAILURE"], timeout=20) if ev is None: raise Exception("dev2 did not report auth failure (2)") + dev[2].dump_monitor() count = 0 - ev = dev[0].wait_event(["MESH-SAE-AUTH-FAILURE"], timeout=1) + ev = dev[0].wait_event(["MESH-SAE-AUTH-FAILURE"], timeout=5) if ev is None: logger.info("dev0 did not report auth failure") else: if "addr=" + dev[2].own_addr() not in ev: raise Exception("Unexpected peer address in dev0 event: " + ev) count += 1 + dev[0].dump_monitor() - ev = dev[1].wait_event(["MESH-SAE-AUTH-FAILURE"], timeout=1) + ev = dev[1].wait_event(["MESH-SAE-AUTH-FAILURE"], timeout=5) if ev is None: logger.info("dev1 did not report auth failure") else: if "addr=" + dev[2].own_addr() not in ev: raise Exception("Unexpected peer address in dev1 event: " + ev) count += 1 + dev[1].dump_monitor() hwsim_utils.test_connectivity(dev[0], dev[1])