From d283f7aeacf2e1c4f04b0f547bd67efc096204c3 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 11 Dec 2016 20:08:39 +0200 Subject: [PATCH] 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 --- tests/hwsim/test_wpas_mesh.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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])