mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 23:31:51 +00:00
test: helpers.retry()
This commit is contained in:
@@ -98,15 +98,7 @@ describe('undo tree:', function()
|
||||
expect_line('123456abc')
|
||||
end
|
||||
|
||||
-- Retry up to 3 times. pcall() is _not_ used for the final attempt, so
|
||||
-- that failure messages can bubble up.
|
||||
for _ = 1, 2 do
|
||||
local success = pcall(test_earlier_later)
|
||||
if success then
|
||||
return
|
||||
end
|
||||
end
|
||||
test_earlier_later()
|
||||
helpers.retry(test_earlier_later)
|
||||
end)
|
||||
|
||||
it('file-write specifications', function()
|
||||
|
Reference in New Issue
Block a user