summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-04-29 21:27:30 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-04-30 18:14:40 +0900
commit77f9f4664ac9002358735f152ea429e2a578aee2 (patch)
treef14e6149f252cacced75428aa5a0ac87a1c12e06 /test
parent5c2f85c39e98d6fcf70cbc887de7a1af1b0d9c52 (diff)
Fix search not triggered when query change and reload happen at the same time
Fix #3268
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_go.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index 7cdacdef..ff459e1c 100755
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -2861,6 +2861,11 @@ class TestGoFZF < TestBase
tmux.send_keys :c
tmux.until { |lines| assert_equal 0, lines.match_count }
end
+
+ def test_reload_and_change
+ tmux.send_keys "(echo foo; echo bar) | #{FZF} --bind 'load:reload-sync(sleep 60)+change-query(bar)'", :Enter
+ tmux.until { |lines| assert_equal 1, lines.match_count }
+ end
end
module TestShell