]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.3834: Test_out_cb often fails on Mac v8.2.3834
authorBram Moolenaar <Bram@vim.org>
Fri, 17 Dec 2021 11:44:33 +0000 (11:44 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 17 Dec 2021 11:44:33 +0000 (11:44 +0000)
Problem:    Test_out_cb often fails on Mac.
Solution:   Increase the timeout with every retry.

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

index f8cdef4fc7531a45a03651ce82f66a1dd8ac2e46..d9ab521f885b0f34a4292b9c07b24d07a72f199f 100644 (file)
@@ -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
index b2f02eca55e8b690b85fe80f0843f8818791269d..368384c9a2d8b5db478ee478e10090cdb5f1efab 100644 (file)
@@ -749,6 +749,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3834,
 /**/
     3833,
 /**/