Skip to content

Commit 304563c

Browse files
committed
patch 7.4.1510
Problem: Channel test fails on AppVeyor. Solution: Wait longer than 10 msec if needed.
1 parent 151f656 commit 304563c

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

src/testdir/test_channel.vim

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,11 +395,21 @@ func s:raw_one_time_callback(port)
395395

396396
" The message are sent raw, we do our own JSON strings here.
397397
call ch_sendraw(handle, "[1, \"hello!\"]", {'callback': 's:HandleRaw1'})
398-
sleep 10m
398+
for i in range(50)
399+
sleep 10m
400+
if s:reply1 != ''
401+
break
402+
endif
403+
endfor
399404
call assert_equal("[1, \"got it\"]", s:reply1)
400405
call ch_sendraw(handle, "[2, \"echo something\"]", {'callback': 's:HandleRaw2'})
401406
call ch_sendraw(handle, "[3, \"wait a bit\"]", {'callback': 's:HandleRaw3'})
402-
sleep 10m
407+
for i in range(50)
408+
sleep 10m
409+
if s:reply2 != ''
410+
break
411+
endif
412+
endfor
403413
call assert_equal("[2, \"something\"]", s:reply2)
404414
" wait for up to 500 msec for the 200 msec delayed reply
405415
for i in range(50)

src/version.c

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

744744
static int included_patches[] =
745745
{ /* Add new patch number below this line */
746+
/**/
747+
1510,
746748
/**/
747749
1509,
748750
/**/

0 commit comments

Comments
 (0)