Skip to content

Commit dd74ab9

Browse files
committed
patch 7.4.2260
Problem: Channel test is flaky. Solution: Add a newline to separate JSON messages.
1 parent 4d6f32c commit dd74ab9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/testdir/test_channel.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,11 +368,11 @@ func Ch_raw_one_time_callback(port)
368368
call ch_setoptions(handle, {'mode': 'raw'})
369369

370370
" The message are sent raw, we do our own JSON strings here.
371-
call ch_sendraw(handle, "[1, \"hello!\"]", {'callback': 'Ch_handleRaw1'})
371+
call ch_sendraw(handle, "[1, \"hello!\"]\n", {'callback': 'Ch_handleRaw1'})
372372
call WaitFor('g:Ch_reply1 != ""')
373373
call assert_equal("[1, \"got it\"]", g:Ch_reply1)
374-
call ch_sendraw(handle, "[2, \"echo something\"]", {'callback': 'Ch_handleRaw2'})
375-
call ch_sendraw(handle, "[3, \"wait a bit\"]", {'callback': 'Ch_handleRaw3'})
374+
call ch_sendraw(handle, "[2, \"echo something\"]\n", {'callback': 'Ch_handleRaw2'})
375+
call ch_sendraw(handle, "[3, \"wait a bit\"]\n", {'callback': 'Ch_handleRaw3'})
376376
call WaitFor('g:Ch_reply2 != ""')
377377
call assert_equal("[2, \"something\"]", g:Ch_reply2)
378378
" wait for the 200 msec delayed reply

src/version.c

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

764764
static int included_patches[] =
765765
{ /* Add new patch number below this line */
766+
/**/
767+
2260,
766768
/**/
767769
2259,
768770
/**/

0 commit comments

Comments
 (0)