1
0
forked from aniani/vim

patch 8.2.3834: Test_out_cb often fails on Mac

Problem:    Test_out_cb often fails on Mac.
Solution:   Increase the timeout with every retry.
This commit is contained in:
Bram Moolenaar
2021-12-17 11:44:33 +00:00
parent c3f91c0648
commit deda6441e4
2 changed files with 9 additions and 2 deletions

View File

@@ -1239,10 +1239,15 @@ func Test_out_cb()
let g:Ch_outobj = '' let g:Ch_outobj = ''
call ch_sendraw(job, "echosplit [0, {\"one\": 1,| \"tw|o\": 2, \"three\": 3|}]\n") call ch_sendraw(job, "echosplit [0, {\"one\": 1,| \"tw|o\": 2, \"three\": 3|}]\n")
" For unknown reasons this can be very slow on Mac. " For unknown reasons this can be very slow on Mac.
if has('mac') " Increase the timeout on every run.
if g:run_nr == 1
let timeout = 5000
elseif g:run_nr == 2
let timeout = 10000
elseif g:run_nr == 3
let timeout = 20000 let timeout = 20000
else else
let timeout = 5000 let timeout = 40000
endif endif
call WaitForAssert({-> assert_equal({'one': 1, 'two': 2, 'three': 3}, g:Ch_outobj)}, timeout) call WaitForAssert({-> assert_equal({'one': 1, 'two': 2, 'three': 3}, g:Ch_outobj)}, timeout)
finally finally

View File

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