Skip to content

Commit 2c4c75e

Browse files
committed
ci: fix test on nightly
1 parent 988421c commit 2c4c75e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/actions_spec.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ T["actions"] = new_set({ n_retry = not helpers.IS_LINUX() and 5 or nil })
1717

1818
T["actions"]["ui don't freeze on error"] = function()
1919
-- reload({ "hide" })
20+
local screen_opts = { ignore_text = { 28 } }
2021
exec_lua(
2122
[[FzfLua.fzf_exec({ "aaa", "bbb" }, {
2223
actions = { enter = { fn = error, exec_silent = true } },
@@ -25,13 +26,13 @@ T["actions"]["ui don't freeze on error"] = function()
2526
child.type_keys("<cr>")
2627
child.type_keys("ui should not freeze on action error")
2728
vim.uv.sleep(100 * (not helpers.IS_LINUX() and 5 or 1))
28-
child.expect_screen_lines({ redraw = true })
29+
child.expect_screen_lines(screen_opts)
2930

3031
exec_lua([[FzfLua.fzf_exec(function(cb) cb(1) cb(2) error("eff") end)]])
3132
child.wait_until(function() return child.lua_get([[_G._fzf_load_called]]) == true end)
3233
child.type_keys("ui should not freeze on content error")
3334
vim.uv.sleep(100 * (not helpers.IS_LINUX() and 5 or 1))
34-
child.expect_screen_lines({ ignore_text = { 28 } })
35+
child.expect_screen_lines(screen_opts)
3536
end
3637

3738
return T

0 commit comments

Comments
 (0)