mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 08:28:34 +00:00
vim-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.
413c04e8d5
This commit is contained in:
@@ -150,7 +150,7 @@ func StopTimer1(timer)
|
|||||||
let g:timer2 = 10->timer_start('StopTimer2')
|
let g:timer2 = 10->timer_start('StopTimer2')
|
||||||
" avoid maxfuncdepth error
|
" avoid maxfuncdepth error
|
||||||
call timer_pause(g:timer1, 1)
|
call timer_pause(g:timer1, 1)
|
||||||
sleep 40m
|
sleep 20m
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func StopTimer2(timer)
|
func StopTimer2(timer)
|
||||||
@@ -160,7 +160,7 @@ endfunc
|
|||||||
func Test_timer_stop_in_callback()
|
func Test_timer_stop_in_callback()
|
||||||
call assert_equal(0, len(timer_info()))
|
call assert_equal(0, len(timer_info()))
|
||||||
let g:timer1 = timer_start(10, 'StopTimer1')
|
let g:timer1 = timer_start(10, 'StopTimer1')
|
||||||
sleep 40m
|
sleep 50m
|
||||||
call assert_equal(0, len(timer_info()))
|
call assert_equal(0, len(timer_info()))
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user