]> granicus.if.org Git - vim/commitdiff
patch 8.2.0278: channel test is flaky on Mac v8.2.0278
authorBram Moolenaar <Bram@vim.org>
Wed, 19 Feb 2020 13:31:33 +0000 (14:31 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 19 Feb 2020 13:31:33 +0000 (14:31 +0100)
Problem:    Channel test is flaky on Mac.
Solution:   Reset variable before sending message.

src/testdir/test_channel.vim
src/version.c

index 16fe5c7829fc7052581b2980f9c5dd3382e35a81..c98f5bd683cbeea45ed3393ad3207057079e8a06 100644 (file)
@@ -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
-    call ch_sendraw(job, "echosplit [0, {\"one\": 1,| \"tw|o\": 2, \"three\": 3|}]\n")
     let g:Ch_outobj = ''
+    call ch_sendraw(job, "echosplit [0, {\"one\": 1,| \"tw|o\": 2, \"three\": 3|}]\n")
     call WaitForAssert({-> assert_equal({'one': 1, 'two': 2, 'three': 3}, g:Ch_outobj)})
   finally
     call job_stop(job)
index b76a35414ddb703fe352ab92508d4bc5ff4e9ed8..d74b0fa7842739a5aed184526cf232c1843c6937 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    278,
 /**/
     277,
 /**/