mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
patch 8.2.2180: Vim9: test for error after error is flaky
Problem: Vim9: test for error after error is flaky. Solution: Wait for job to finish instead of a fixed delay.
This commit is contained in:
@@ -3096,7 +3096,10 @@ def Test_no_unknown_error_after_error()
|
||||
source += l
|
||||
enddef
|
||||
var myjob = job_start('echo burp', {out_cb: Out_cb, exit_cb: Exit_cb, mode: 'raw'})
|
||||
sleep 100m
|
||||
while job_status(myjob) == 'run'
|
||||
sleep 10m
|
||||
endwhile
|
||||
sleep 10m
|
||||
END
|
||||
writefile(lines, 'Xdef')
|
||||
assert_fails('so Xdef', ['E684:', 'E1012:'])
|
||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2180,
|
||||
/**/
|
||||
2179,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user