tests: retry: "wait() evaluates the condition on given interval" (#11155)
Ref: https://github.com/neovim/neovim/issues/11137
This commit is contained in:
parent
e452988960
commit
2b08dd8f06
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue