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 <jouni@qca.qualcomm.com>
This commit is contained in:
parent
b3253ebb73
commit
da63ee073f
1 changed files with 4 additions and 4 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue