0
0
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:
Bram Moolenaar
2020-12-21 18:11:24 +01:00
parent 4f5e397756
commit 6f17a3f023
2 changed files with 6 additions and 1 deletions

View File

@@ -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:'])

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2180,
/**/
2179,
/**/