Skip to content

Commit b888086

Browse files
committed
ci: more retry, larger timeout to avoid flaky
1 parent a683139 commit b888086

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lua/fzf-lua/test/helpers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ M.new_child_neovim = function()
331331
end
332332

333333
local wait_timeout = (M.IS_LINUX() and 2000 or 5000)
334-
wait_timeout = os.getenv("CI") and wait_timeout * 2 or wait_timeout
334+
wait_timeout = os.getenv("CI") and wait_timeout * 3 or wait_timeout
335335
--- waits until condition fn evals to true, checking every interval ms
336336
--- times out at timeout ms
337337
---@param condition fun(): boolean

tests/win_spec.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ T["win"]["previewer"]["split flex layout resize"] = function()
197197
}
198198
},
199199
__after_open = function()
200+
if helpers.IS_WIN() then vim.uv.sleep(250) end
200201
child.wait_until(function()
201202
return child.lua_get([[FzfLua.utils.fzf_winobj()._previewer.last_entry]]) == "foo"
202203
end)
@@ -386,7 +387,7 @@ T["win"]["reuse"] = new_set({
386387
end
387388
})
388389

389-
T["win"]["highlight"] = new_set()
390+
T["win"]["highlight"] = new_set({ n_retry = not helpers.IS_LINUX() and 5 or nil })
390391

391392
T["win"]["highlight"]["unchange when reuse win #2588"] = function()
392393
helpers.SKIP_IF_WIN() -- windows attr looks different

0 commit comments

Comments
 (0)