Skip to content

Commit

Permalink
Increate nghttpd wait timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
perklet committed Dec 25, 2023
1 parent 7615b5e commit 3b01228
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_impersonate.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def tcpdump(pytestconfig):
p.wait(timeout=10)


async def _read_proc_output(proc, timeout):
async def _read_proc_output(proc, timeout: int = 5):
"""Read an async process' output until timeout is reached"""
data = bytes()
loop = asyncio.get_running_loop()
Expand Down Expand Up @@ -445,7 +445,7 @@ async def test_no_builtin_headers(
)
assert ret == 0

output = await _read_proc_output(nghttpd, timeout=2)
output = await _read_proc_output(nghttpd, timeout=5)

assert len(output) > 0
sig = parse_nghttpd_log(output)
Expand Down Expand Up @@ -508,7 +508,7 @@ async def test_user_agent(pytestconfig, nghttpd, curl_binary, env_vars, ld_prelo
)
assert ret == 0

output = await _read_proc_output(nghttpd, timeout=2)
output = await _read_proc_output(nghttpd, timeout=5)

assert len(output) > 0

Expand Down Expand Up @@ -580,7 +580,7 @@ async def test_user_agent_curlopt_useragent(
)
assert ret == 0

output = await _read_proc_output(nghttpd, timeout=2)
output = await _read_proc_output(nghttpd, timeout=5)

assert len(output) > 0

Expand Down

0 comments on commit 3b01228

Please sign in to comment.