mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
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
@ -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 New Issue
Block a user