Strengthen wait test to verify fzf stays alive after cancel
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled

Assert that a query still filters after Ctrl-C, proving fzf keeps
running and accepts input. The disappearing indicator alone would also
pass if fzf exited.
This commit is contained in:
Junegunn Choi
2026-06-29 12:47:00 +09:00
parent 206f5877c0
commit f4f2c34916
+3
View File
@@ -1168,6 +1168,9 @@ class TestCore < TestInteractive
tmux.until { |lines| assert lines.any_include?('20/100 (..)') }
tmux.send_keys 'C-c'
tmux.until { |lines| refute lines.any_include?('20/100 (..)') }
# Ctrl-C cancels the wait; fzf keeps running and accepts input again
tmux.send_keys '99'
tmux.until { |lines| assert_equal 1, lines.match_count }
end
def test_clear_selection