diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-11-30 22:21:26 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-11-30 22:22:05 +0100 |
commit | 0ce880083d1faeebaecd393fc28e443b19862540 (patch) | |
tree | e48626ff7c922f0e2b612bc842c7c87feb1c5131 | |
parent | 32a30d90b460048a43490a16d2e006d0e39b0e38 (diff) | |
download | rneovim-0ce880083d1faeebaecd393fc28e443b19862540.tar.gz rneovim-0ce880083d1faeebaecd393fc28e443b19862540.tar.bz2 rneovim-0ce880083d1faeebaecd393fc28e443b19862540.zip |
test/macOS: adjust time-sensitive tests
From test_timers.vim:
Found errors in Test_paused():
First run:
function RunTheTest[35]..Test_paused line 20: Expected range 0 - 100, but got 123
Second run:
function RunTheTest[35]..Test_paused line 20: Expected range 0 - 100, but got 106
previously: #9220
- Timer tests are less reliable on Travis CI macOS 10.12/10.13.
ref #6829
ref e39dade80b02
ref de13113dc16e
ref https://github.com/neovim/neovim/pull/9095#issuecomment-429603452
> We don't guarantee that a X ms timer is triggered during Y ms sleep
> for any X<Y, though I would expect the load to be really bad for this
> to happen with X=10ms, Y=40ms.
-rw-r--r-- | src/nvim/testdir/test_timers.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_timers.vim b/src/nvim/testdir/test_timers.vim index 8a3e57bb02..cdfdd473b9 100644 --- a/src/nvim/testdir/test_timers.vim +++ b/src/nvim/testdir/test_timers.vim @@ -121,7 +121,7 @@ func Test_paused() let slept = WaitFor('g:val == 1') call assert_equal(1, g:val) if has('reltime') - call assert_inrange(0, 100, slept) + call assert_inrange(0, 140, slept) else call assert_inrange(0, 10, slept) endif |