test: stabilize transport admission deadline
This commit is contained in:
parent
5c370cbe33
commit
59bc13c5b0
|
|
@ -234,7 +234,7 @@ async def test_streaming_reads_share_the_same_bounded_read_capacity():
|
||||||
try:
|
try:
|
||||||
await asyncio.wait_for(saturated.wait(), timeout=0.2)
|
await asyncio.wait_for(saturated.wait(), timeout=0.2)
|
||||||
with pytest.raises(gitea_proxy.GiteaOverloadedError):
|
with pytest.raises(gitea_proxy.GiteaOverloadedError):
|
||||||
await asyncio.wait_for(gitea_proxy.fetch("third"), timeout=0.1)
|
await asyncio.wait_for(gitea_proxy.fetch("third"), timeout=1.0)
|
||||||
finally:
|
finally:
|
||||||
release.set()
|
release.set()
|
||||||
await asyncio.gather(*streams)
|
await asyncio.gather(*streams)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user