comparison src/testdir/test_timers.vim @ 13098:318577da90b1 v8.0.1424

patch 8.0.1424: the timer_pause test is flaky on Travis commit https://github.com/vim/vim/commit/a47ebdbd222ae488a65be4e8bc3fd87c6301c000 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 23 18:41:35 2017 +0100 patch 8.0.1424: the timer_pause test is flaky on Travis Problem: The timer_pause test is flaky on Travis. Solution: Accept a longer sleep time on Mac.
author Christian Brabandt <cb@256bit.org>
date Sat, 23 Dec 2017 18:45:05 +0100
parents 440d934bd616
children 45a9c54a6468
comparison
equal deleted inserted replaced
13097:396d5f903d26 13098:318577da90b1
120 call assert_equal(0, info[0]['paused']) 120 call assert_equal(0, info[0]['paused'])
121 121
122 let slept = WaitFor('g:val == 1') 122 let slept = WaitFor('g:val == 1')
123 call assert_equal(1, g:val) 123 call assert_equal(1, g:val)
124 if has('reltime') 124 if has('reltime')
125 call assert_inrange(0, 30, slept) 125 if has('mac')
126 " The travis Mac machines appear to be very busy.
127 call assert_inrange(0, 40, slept)
128 else
129 call assert_inrange(0, 30, slept)
130 endif
126 else 131 else
127 call assert_inrange(0, 10, slept) 132 call assert_inrange(0, 10, slept)
128 endif 133 endif
129 endfunc 134 endfunc
130 135