comparison src/testdir/test_timers.vim @ 17734:c92899aa761a v8.1.1864

patch 8.1.1864: still a timer test that is flaky on Mac commit https://github.com/vim/vim/commit/413c04e8d515f604a17b90295c86a0fd547518ba Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 16 22:29:18 2019 +0200 patch 8.1.1864: still a timer test that is flaky on Mac Problem: Still a timer test that is flaky on Mac. Solution: Adjust the sleep times.
author Bram Moolenaar <Bram@vim.org>
date Fri, 16 Aug 2019 22:30:04 +0200
parents 76fba68d1c67
children 01205ef5646d
comparison
equal deleted inserted replaced
17733:5fbbdaaa7f7c 17734:c92899aa761a
150 150
151 func StopTimer1(timer) 151 func StopTimer1(timer)
152 let g:timer2 = timer_start(10, 'StopTimer2') 152 let g:timer2 = timer_start(10, 'StopTimer2')
153 " avoid maxfuncdepth error 153 " avoid maxfuncdepth error
154 call timer_pause(g:timer1, 1) 154 call timer_pause(g:timer1, 1)
155 sleep 40m 155 sleep 20m
156 endfunc 156 endfunc
157 157
158 func StopTimer2(timer) 158 func StopTimer2(timer)
159 call timer_stop(g:timer1) 159 call timer_stop(g:timer1)
160 endfunc 160 endfunc
161 161
162 func Test_timer_stop_in_callback() 162 func Test_timer_stop_in_callback()
163 call assert_equal(0, len(timer_info())) 163 call assert_equal(0, len(timer_info()))
164 let g:timer1 = timer_start(10, 'StopTimer1') 164 let g:timer1 = timer_start(10, 'StopTimer1')
165 sleep 40m 165 sleep 50m
166 call assert_equal(0, len(timer_info())) 166 call assert_equal(0, len(timer_info()))
167 endfunc 167 endfunc
168 168
169 func StopTimerAll(timer) 169 func StopTimerAll(timer)
170 call timer_stopall() 170 call timer_stopall()