summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_channel.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-03-29 16:18:58 +0200
committerBram Moolenaar <Bram@vim.org>2020-03-29 16:18:58 +0200
commitbf54dbeb5ccd2cfb9cc0687fd71ac3b3eddce0da (patch)
tree88039fa154a644efeac0ac3c9c0475f05e9ea9f6 /src/testdir/test_channel.vim
parent0fff44152d06e6b662ad4bef172af07a041d2f3f (diff)
patch 8.2.0475: channel out_cb test still fails sometimes on Macv8.2.0475
Problem: Channel out_cb test still fails sometimes on Mac. Solution: Use an ever longer timeout.
Diffstat (limited to 'src/testdir/test_channel.vim')
-rw-r--r--src/testdir/test_channel.vim9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim
index fc8b3729ab..a2dafb5600 100644
--- a/src/testdir/test_channel.vim
+++ b/src/testdir/test_channel.vim
@@ -1174,8 +1174,13 @@ func Test_out_cb()
" Receive a json object split in pieces
let g:Ch_outobj = ''
call ch_sendraw(job, "echosplit [0, {\"one\": 1,| \"tw|o\": 2, \"three\": 3|}]\n")
- " For unknown reason this can be very slow on Mac.
- call WaitForAssert({-> assert_equal({'one': 1, 'two': 2, 'three': 3}, g:Ch_outobj)}, 10000)
+ " For unknown reasons this can be very slow on Mac.
+ if has('mac')
+ let timeout = 20000
+ else
+ let timeout = 5000
+ endif
+ call WaitForAssert({-> assert_equal({'one': 1, 'two': 2, 'three': 3}, g:Ch_outobj)}, timeout)
finally
call job_stop(job)
endtry