tests: retry: "wait() evaluates the condition on given interval" (#11155)

Ref: https://github.com/neovim/neovim/issues/11137
This commit is contained in:
Daniel Hahler 2019-10-06 22:47:40 +02:00 committed by GitHub
parent e452988960
commit 2b08dd8f06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -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))