account for asyncio.wait_for returning early for timeout (#14097)

This commit is contained in:
Almog De Paz 2022-12-12 18:59:47 +02:00 committed by GitHub
parent 32fa4fd41b
commit 801e1a0431
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -409,8 +409,7 @@ class TestFullSync:
blocks_950[-1].height + 1, default_1000_blocks[-1].header_hash
)
start = time.time()
res = await peers[0].request_proof_of_weight(request, timeout=5)
res = await peers[0].request_proof_of_weight(request, timeout=6)
assert res is None
duration = time.time() - start
assert duration > 5
log.info(f"result was {res}")