diff options
author | Daniel Hahler <git@thequod.de> | 2019-08-14 02:30:29 +0200 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2019-08-20 04:54:28 +0200 |
commit | 9e04e19574e7cb5b0dec132ff7260419da44d36f (patch) | |
tree | e54881b3389fb415b5e7850c09b898fa5c1fc3a2 /test/functional/helpers.lua | |
parent | 7fa49627e583e1020919760ad37cf4c1639469da (diff) | |
download | rneovim-9e04e19574e7cb5b0dec132ff7260419da44d36f.tar.gz rneovim-9e04e19574e7cb5b0dec132ff7260419da44d36f.tar.bz2 rneovim-9e04e19574e7cb5b0dec132ff7260419da44d36f.zip |
tests: timer_spec: lower timeout, avoids flakiness
Inspired by quickbuild failure, where `g:val` was increased already:
20:07:04,227 INFO - not ok 1164 - timers works with repeat two
20:07:04,227 INFO - # test/functional/eval/timer_spec.lua @ 36
20:07:04,227 INFO - # Failure message: test/functional/eval/timer_spec.lua:38: Expected objects to be the same.
20:07:04,227 INFO - # Passed in:
20:07:04,227 INFO - # (number) 1
20:07:04,227 INFO - # Expected:
20:07:04,227 INFO - # (number) 0
20:07:04,227 INFO - # stack traceback:
20:07:04,227 INFO - # test/functional/eval/timer_spec.lua:38: in function <test/functional/eval/timer_spec.lua:36>
Uses a pattern of `eq()`ing `timer_start` and `g:val` in the same `eval`
call, and decreases timeouts in general.
Improves runtime from ~5s to <2s.
Diffstat (limited to 'test/functional/helpers.lua')
0 files changed, 0 insertions, 0 deletions