comparison src/testdir/test_channel.vim @ 19707:8744a50560cb v8.2.0410

patch 8.2.0410: channel test fails too often on slow Mac Commit: https://github.com/vim/vim/commit/3696839ef1165804159e28f50cb6113acc3d519d Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 19 16:22:44 2020 +0100 patch 8.2.0410: channel test fails too often on slow Mac Problem: Channel test fails too often on slow Mac. Solution: Increase waiting time to 10 seconds.
author Bram Moolenaar <Bram@vim.org>
date Thu, 19 Mar 2020 16:30:04 +0100
parents 5ec5427fcedf
children e73167dd8cac
comparison
equal deleted inserted replaced
19706:f53f46722dce 19707:8744a50560cb
1158 call WaitForAssert({-> assert_equal("dict: there", g:Ch_errmsg)}) 1158 call WaitForAssert({-> assert_equal("dict: there", g:Ch_errmsg)})
1159 1159
1160 " Receive a json object split in pieces 1160 " Receive a json object split in pieces
1161 let g:Ch_outobj = '' 1161 let g:Ch_outobj = ''
1162 call ch_sendraw(job, "echosplit [0, {\"one\": 1,| \"tw|o\": 2, \"three\": 3|}]\n") 1162 call ch_sendraw(job, "echosplit [0, {\"one\": 1,| \"tw|o\": 2, \"three\": 3|}]\n")
1163 call WaitForAssert({-> assert_equal({'one': 1, 'two': 2, 'three': 3}, g:Ch_outobj)}) 1163 " For unknown reason this can be very slow on Mac.
1164 call WaitForAssert({-> assert_equal({'one': 1, 'two': 2, 'three': 3}, g:Ch_outobj)}, 10000)
1164 finally 1165 finally
1165 call job_stop(job) 1166 call job_stop(job)
1166 endtry 1167 endtry
1167 endfunc 1168 endfunc
1168 1169