]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Add more time for P2P discovery tests
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 17 Feb 2014 09:42:43 +0000 (11:42 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 17 Feb 2014 09:42:43 +0000 (11:42 +0200)
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 <jouni@qca.qualcomm.com>
tests/hwsim/test_p2p_discovery.py

index d555e02c23e56c3f4fbc4831afec7f5e0e672ce9..685a76c60d0c101b632a2ed6c7ea35d1e043b8b6 100644 (file)
@@ -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")