Skip to content

Commit 2152eae

Browse files
authored
Calculate timeout using max_wait
1 parent 271772e commit 2152eae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python_packages/jupyter_lsp/jupyter_lsp/tests/test_stdio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async def test_reader(message, repeats, interval, communicator_spawner):
7272
message=message, repeats=repeats, interval=interval
7373
)
7474
reader = LspStdIoReader(stream=process.stdout, queue=queue)
75-
timeout = 2 + (interval or 1) * repeats * 10
75+
timeout = 3 + reader.max_wait * repeats * 10
7676

7777
communicate_and_close(process)
7878
await asyncio.wait_for(reader.read(), timeout=timeout)

0 commit comments

Comments
 (0)