From: Jouni Malinen Date: Sat, 29 Apr 2017 19:40:01 +0000 (+0300) Subject: tests: Make p2p_service_discovery_peer_not_listening a bit more robust X-Git-Tag: hostap_2_7~1356 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87ad672108755a610e8c203419f4a64ff92057d3;p=thirdparty%2Fhostap.git tests: Make p2p_service_discovery_peer_not_listening a bit more robust It was apparently possible for the P2P_FIND operation to terminate before the peer device was found. Increase the timeout to avoid this. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_p2p_service.py b/tests/hwsim/test_p2p_service.py index 5da1bca13..3056d0f27 100644 --- a/tests/hwsim/test_p2p_service.py +++ b/tests/hwsim/test_p2p_service.py @@ -478,7 +478,7 @@ def test_p2p_service_discovery_peer_not_listening(dev): add_bonjour_services(dev[0]) add_upnp_services(dev[0]) dev[0].p2p_listen() - dev[1].global_request("P2P_FIND 1 type=social") + dev[1].global_request("P2P_FIND 4 type=social") ev = dev[1].wait_global_event(["P2P-DEVICE-FOUND"], timeout=4) if ev is None: raise Exception("Peer not found")