Skip to content

Commit e70a36a

Browse files
committed
test: unreliable "test_connect_stdio"
Problem: test_connect_stdio is flaky because jobwait has a 500ms timeout, which can expire on slow CI before the subprocess finishes importing pynvim and attaching via stdio. Solution: Increase the jobwait timeout to 5000ms.
1 parent e4b6d6a commit e70a36a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_attach.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def source(vim: Nvim, code: str) -> None:
128128
'python3', '-c', remote_py_code,
129129
], {'rpc': True, 'on_stderr': 'OutputHandler'})
130130
assert jobid > 0
131-
exitcode = vim.funcs.jobwait([jobid], 500)[0]
131+
exitcode = vim.funcs.jobwait([jobid], 5000)[0]
132132
messages = vim.command_output('messages')
133133
assert exitcode == 0, ("the python process failed, :messages =>\n\n" +
134134
messages)

0 commit comments

Comments
 (0)