Skip to content

Commit 918adfc

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

3 files changed

Lines changed: 5 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/api_spec.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ T["api"]["fzf_live"]["rg"]["no error"] = new_set(
204204
),
205205
{
206206
__expect_lines = true,
207+
__after_open = function()
208+
child.wait_until(function() return child.lua_get([[_G._fzf_load_called]]) == true end)
209+
end,
207210
multiprocess = multiprocess,
208211
debug = 1,
209212
query = query,

tests/win_spec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ T["win"]["reuse"] = new_set({
386386
end
387387
})
388388

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

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

0 commit comments

Comments
 (0)