mirror of
https://github.com/neovim/neovim.git
synced 2026-04-29 18:54:18 +00:00
tests: retry: "wait() evaluates the condition on given interval" (#11155)
Ref: https://github.com/neovim/neovim/issues/11137
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user