From e1246a6e2cc12610394f8af1e4d962c59cfbbf4a Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 22 Nov 2015 20:14:06 +0200 Subject: [PATCH] tests: Make ap_open_select_twice less likely to fail It looks like a previous P2P test case can cause the initial single channel scan in ap_open_select_twice take more than five seconds in some cases. While that is not really expected behavior, this test case should not fail. Increase the timeout to avoid reporting false failures here. This could be triggered with the following test case sequence: p2p_msg_unexpected_go_neg_resp ap_open_select_twice Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_open.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hwsim/test_ap_open.py b/tests/hwsim/test_ap_open.py index 69ceca09a..625bb0078 100644 --- a/tests/hwsim/test_ap_open.py +++ b/tests/hwsim/test_ap_open.py @@ -488,7 +488,7 @@ def test_ap_open_select_twice(dev, apdev): id = dev[0].connect("open", key_mgmt="NONE", scan_freq="2412", only_add_network=True) dev[0].select_network(id) - ev = dev[0].wait_event(["CTRL-EVENT-NETWORK-NOT-FOUND"], timeout=5) + ev = dev[0].wait_event(["CTRL-EVENT-NETWORK-NOT-FOUND"], timeout=10) if ev is None: raise Exception("No result reported") hapd = hostapd.add_ap(apdev[0]['ifname'], { "ssid": "open" })