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 69ceca0..625bb00 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" })