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 <j@w1.fi>
This commit is contained in:
parent
58a5c4ae77
commit
d283f7aeac
1 changed files with 5 additions and 2 deletions
|
@ -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])
|
||||
|
||||
|
|
Loading…
Reference in a new issue