Skip to content

Commit bf54dbe

Browse files
committed
patch 8.2.0475: channel out_cb test still fails sometimes on Mac
Problem: Channel out_cb test still fails sometimes on Mac. Solution: Use an ever longer timeout.
1 parent 0fff441 commit bf54dbe

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

src/testdir/test_channel.vim

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,8 +1174,13 @@ func Test_out_cb()
11741174
" Receive a json object split in pieces
11751175
let g:Ch_outobj = ''
11761176
call ch_sendraw(job, "echosplit [0, {\"one\": 1,| \"tw|o\": 2, \"three\": 3|}]\n")
1177-
" For unknown reason this can be very slow on Mac.
1178-
call WaitForAssert({-> assert_equal({'one': 1, 'two': 2, 'three': 3}, g:Ch_outobj)}, 10000)
1177+
" For unknown reasons this can be very slow on Mac.
1178+
if has('mac')
1179+
let timeout = 20000
1180+
else
1181+
let timeout = 5000
1182+
endif
1183+
call WaitForAssert({-> assert_equal({'one': 1, 'two': 2, 'three': 3}, g:Ch_outobj)}, timeout)
11791184
finally
11801185
call job_stop(job)
11811186
endtry

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
475,
741743
/**/
742744
474,
743745
/**/

0 commit comments

Comments
 (0)