diff src/testdir/test_timers.vim @ 18975:8696f0ebeb43 v8.2.0048

patch 8.2.0048: another timers test is flaky on Travis for Mac Commit: https://github.com/vim/vim/commit/5c463a28fff1d82222d49bc7960da9e0c866b060 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 27 17:14:33 2019 +0100 patch 8.2.0048: another timers test is flaky on Travis for Mac Problem: Another timers test is flaky on Travis for Mac. Solution: Increase maximum expected time.
author Bram Moolenaar <Bram@vim.org>
date Fri, 27 Dec 2019 17:15:03 +0100
parents 8295f4061dc2
children 2a017e9dc6da
line wrap: on
line diff
--- a/src/testdir/test_timers.vim
+++ b/src/testdir/test_timers.vim
@@ -73,7 +73,12 @@ func Test_timer_with_partial_callback()
   let slept = WaitFor('g:val == 1')
   call assert_equal(1, g:val)
   if has('reltime')
-    call assert_inrange(49, 130, slept)
+    " Mac on Travis can be slow.
+    if has('mac')
+      call assert_inrange(49, 180, slept)
+    else
+      call assert_inrange(49, 130, slept)
+    endif
   else
     call assert_inrange(20, 100, slept)
   endif