diff options
author | Daniel Hahler <git@thequod.de> | 2019-10-06 22:47:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-06 22:47:40 +0200 |
commit | 2b08dd8f062c3e0dc1c01c1b695a7dd282b8ff21 (patch) | |
tree | f7eedac6b3e3a9ad78485ae7e21a7e9c78885a19 | |
parent | e452988960b11e971d839c27dcd2f42e68f3aa4d (diff) | |
download | rneovim-2b08dd8f062c3e0dc1c01c1b695a7dd282b8ff21.tar.gz rneovim-2b08dd8f062c3e0dc1c01c1b695a7dd282b8ff21.tar.bz2 rneovim-2b08dd8f062c3e0dc1c01c1b695a7dd282b8ff21.zip |
tests: retry: "wait() evaluates the condition on given interval" (#11155)
Ref: https://github.com/neovim/neovim/issues/11137
-rw-r--r-- | test/functional/eval/wait_spec.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/functional/eval/wait_spec.lua b/test/functional/eval/wait_spec.lua index ad7d1574cb..ee95e02a7f 100644 --- a/test/functional/eval/wait_spec.lua +++ b/test/functional/eval/wait_spec.lua @@ -58,8 +58,11 @@ describe('wait()', function() endfunction ]]) - nvim('set_var', 'counter', 0) - eq(-1, call('wait', 20, 'Count() >= 5', 99999)) + -- XXX: flaky (#11137) + helpers.retry(nil, nil, function() + nvim('set_var', 'counter', 0) + eq(-1, call('wait', 20, 'Count() >= 5', 99999)) + end) nvim('set_var', 'counter', 0) eq(0, call('wait', 10000, 'Count() >= 5', 5)) |