From f4f2c349169362138559764b935015722dfbac7c Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 29 Jun 2026 12:47:00 +0900 Subject: [PATCH] Strengthen wait test to verify fzf stays alive after cancel 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. --- test/test_core.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_core.rb b/test/test_core.rb index fa99fa52..4b479d88 100644 --- a/test/test_core.rb +++ b/test/test_core.rb @@ -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