]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make ap_open_select_twice less likely to fail
authorJouni Malinen <j@w1.fi>
Sun, 22 Nov 2015 18:14:06 +0000 (20:14 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 22 Nov 2015 18:14:06 +0000 (20:14 +0200)
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 <j@w1.fi>
tests/hwsim/test_ap_open.py

index 69ceca09a75e881f8a86b76b0fcf3f64a51b3d99..625bb0078d1ad14b1d304d70d2e16cc2e48212cf 100644 (file)
@@ -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" })