Mercurial > vim
changeset 26610:95a267994eac v8.2.3834
patch 8.2.3834: Test_out_cb often fails on Mac
Commit: https://github.com/vim/vim/commit/deda6441e457072df39cdc8744dcd685d77fa273
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 17 11:44:33 2021 +0000
patch 8.2.3834: Test_out_cb often fails on Mac
Problem: Test_out_cb often fails on Mac.
Solution: Increase the timeout with every retry.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 17 Dec 2021 12:45:05 +0100 |
parents | 657addfd8645 |
children | 6da29744e94a |
files | src/testdir/test_channel.vim src/version.c |
diffstat | 2 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_channel.vim +++ b/src/testdir/test_channel.vim @@ -1239,10 +1239,15 @@ func Test_out_cb() let g:Ch_outobj = '' call ch_sendraw(job, "echosplit [0, {\"one\": 1,| \"tw|o\": 2, \"three\": 3|}]\n") " For unknown reasons this can be very slow on Mac. - if has('mac') + " Increase the timeout on every run. + if g:run_nr == 1 + let timeout = 5000 + elseif g:run_nr == 2 + let timeout = 10000 + elseif g:run_nr == 3 let timeout = 20000 else - let timeout = 5000 + let timeout = 40000 endif call WaitForAssert({-> assert_equal({'one': 1, 'two': 2, 'three': 3}, g:Ch_outobj)}, timeout) finally