Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
18974:00b382af8a50 | 18975:8696f0ebeb43 |
---|---|
71 | 71 |
72 call timer_start(50, meow.bite) | 72 call timer_start(50, meow.bite) |
73 let slept = WaitFor('g:val == 1') | 73 let slept = WaitFor('g:val == 1') |
74 call assert_equal(1, g:val) | 74 call assert_equal(1, g:val) |
75 if has('reltime') | 75 if has('reltime') |
76 call assert_inrange(49, 130, slept) | 76 " Mac on Travis can be slow. |
77 if has('mac') | |
78 call assert_inrange(49, 180, slept) | |
79 else | |
80 call assert_inrange(49, 130, slept) | |
81 endif | |
77 else | 82 else |
78 call assert_inrange(20, 100, slept) | 83 call assert_inrange(20, 100, slept) |
79 endif | 84 endif |
80 endfunc | 85 endfunc |
81 | 86 |