mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.2.0278: channel test is flaky on Mac
Problem: Channel test is flaky on Mac. Solution: Reset variable before sending message.
This commit is contained in:
@@ -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)
|
||||
|
@@ -738,6 +738,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
278,
|
||||
/**/
|
||||
277,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user