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 <j@w1.fi>
This commit is contained in:
parent
05bc2b44c1
commit
e1246a6e2c
1 changed files with 1 additions and 1 deletions
|
@ -488,7 +488,7 @@ def test_ap_open_select_twice(dev, apdev):
|
||||||
id = dev[0].connect("open", key_mgmt="NONE", scan_freq="2412",
|
id = dev[0].connect("open", key_mgmt="NONE", scan_freq="2412",
|
||||||
only_add_network=True)
|
only_add_network=True)
|
||||||
dev[0].select_network(id)
|
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:
|
if ev is None:
|
||||||
raise Exception("No result reported")
|
raise Exception("No result reported")
|
||||||
hapd = hostapd.add_ap(apdev[0]['ifname'], { "ssid": "open" })
|
hapd = hostapd.add_ap(apdev[0]['ifname'], { "ssid": "open" })
|
||||||
|
|
Loading…
Reference in a new issue