From da63ee073f13225c61f19cdd5f9a9224e521dedd Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 17 Feb 2014 11:42:43 +0200 Subject: [PATCH] tests: Add more time for P2P discovery tests It looks like some of the discovery_* test cases have been failing every now and then on the virtual server and the one second timeout could have been a bit too short to cover some possible timing cases. Signed-off-by: Jouni Malinen --- tests/hwsim/test_p2p_discovery.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/hwsim/test_p2p_discovery.py b/tests/hwsim/test_p2p_discovery.py index d555e02c2..685a76c60 100644 --- a/tests/hwsim/test_p2p_discovery.py +++ b/tests/hwsim/test_p2p_discovery.py @@ -129,7 +129,7 @@ def test_discovery_dev_type(dev): if ev: raise Exception("Unexpected P2P device found") dev[0].p2p_find(social=True, dev_type="1-0050F204-2") - ev = dev[0].wait_event(['P2P-DEVICE-FOUND'], timeout=1) + ev = dev[0].wait_event(['P2P-DEVICE-FOUND'], timeout=2) if ev is None: raise Exception("P2P device not found") @@ -147,7 +147,7 @@ def test_discovery_dev_type_go(dev): if ev: raise Exception("Unexpected P2P device found") dev[2].p2p_find(social=True, dev_type="1-0050F204-2") - ev = dev[2].wait_event(['P2P-DEVICE-FOUND ' + addr1], timeout=1) + ev = dev[2].wait_event(['P2P-DEVICE-FOUND ' + addr1], timeout=2) if ev is None: raise Exception("P2P device not found") @@ -160,7 +160,7 @@ def test_discovery_dev_id(dev): if ev: raise Exception("Unexpected P2P device found") dev[0].p2p_find(social=True, dev_id=addr1) - ev = dev[0].wait_event(['P2P-DEVICE-FOUND'], timeout=1) + ev = dev[0].wait_event(['P2P-DEVICE-FOUND'], timeout=2) if ev is None: raise Exception("P2P device not found") @@ -177,6 +177,6 @@ def test_discovery_dev_id_go(dev): if ev: raise Exception("Unexpected P2P device found") dev[2].p2p_find(social=True, dev_id=addr1) - ev = dev[2].wait_event(['P2P-DEVICE-FOUND ' + addr1], timeout=1) + ev = dev[2].wait_event(['P2P-DEVICE-FOUND ' + addr1], timeout=2) if ev is None: raise Exception("P2P device not found")