Skip to content

Commit a02b321

Browse files
committed
patch 7.4.1258
Problem: The channel test can fail if messages arrive later. Solution: Add a short sleep. (Jun T.)
1 parent 681baaf commit a02b321

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/testdir/test_channel.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,17 @@ func Test_communicate()
8888

8989
" Send an eval request that works.
9090
call assert_equal('ok', ch_sendexpr(handle, 'eval-works'))
91+
sleep 10m
9192
call assert_equal([-1, 'foo123'], ch_sendexpr(handle, 'eval-result'))
9293

9394
" Send an eval request that fails.
9495
call assert_equal('ok', ch_sendexpr(handle, 'eval-fails'))
96+
sleep 10m
9597
call assert_equal([-2, 'ERROR'], ch_sendexpr(handle, 'eval-result'))
9698

9799
" Send a bad eval request. There will be no response.
98100
call assert_equal('ok', ch_sendexpr(handle, 'eval-bad'))
101+
sleep 10m
99102
call assert_equal([-2, 'ERROR'], ch_sendexpr(handle, 'eval-result'))
100103

101104
" make the server quit, can't check if this works, should not hang.

src/version.c

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

743743
static int included_patches[] =
744744
{ /* Add new patch number below this line */
745+
/**/
746+
1258,
745747
/**/
746748
1257,
747749
/**/

0 commit comments

Comments
 (0)