changeset 19441:a5ac657fcd70 v8.2.0278

patch 8.2.0278: channel test is flaky on Mac Commit: https://github.com/vim/vim/commit/9ae3bbdb960c3bed20a6db75a75a0a567d570bea Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 19 14:31:33 2020 +0100 patch 8.2.0278: channel test is flaky on Mac Problem: Channel test is flaky on Mac. Solution: Reset variable before sending message.
author Bram Moolenaar <Bram@vim.org>
date Wed, 19 Feb 2020 14:45:04 +0100
parents a7691efbcd6a
children 0eebb086cb2c
files src/testdir/test_channel.vim src/version.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_channel.vim
+++ b/src/testdir/test_channel.vim
@@ -1158,9 +1158,8 @@ func Test_out_cb()
     call WaitForAssert({-> assert_equal("dict: there", g:Ch_errmsg)})
 
     " Receive a json object split in pieces
-    unlet! g:Ch_outobj
+    let g:Ch_outobj = ''
     call ch_sendraw(job, "echosplit [0, {\"one\": 1,| \"tw|o\": 2, \"three\": 3|}]\n")
-    let g:Ch_outobj = ''
     call WaitForAssert({-> assert_equal({'one': 1, 'two': 2, 'three': 3}, g:Ch_outobj)})
   finally
     call job_stop(job)
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    278,
+/**/
     277,
 /**/
     276,