summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2019-11-12 00:10:24 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2019-11-12 00:10:24 +0900
commit7e1c0f39e76864ad0aa4d5c88d074b1055a617a6 (patch)
treee75527bdd1f9beae9978c2b73fe068d94129f02a /test
parentdeccf20a359af9f7420be9dc6aad4c50d6b329e7 (diff)
'reload' action should reset --header-lines
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_go.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index 1dbbf5ce..a441e5ee 100755
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -1623,14 +1623,14 @@ class TestGoFZF < TestBase
end
def test_reload
- tmux.send_keys %(seq 1000 | #{FZF} --bind 'change:reload(seq {q}),a:reload(seq 100),b:reload:seq 200'), :Enter
- tmux.until { |lines| lines.match_count == 1000 }
+ tmux.send_keys %(seq 1000 | #{FZF} --bind 'change:reload(seq {q}),a:reload(seq 100),b:reload:seq 200' --header-lines 2), :Enter
+ tmux.until { |lines| lines.match_count == 998 }
tmux.send_keys 'a'
- tmux.until { |lines| lines.item_count == 100 && lines.match_count == 100 }
+ tmux.until { |lines| lines.item_count == 98 && lines.match_count == 98 }
tmux.send_keys 'b'
- tmux.until { |lines| lines.item_count == 200 && lines.match_count == 200 }
+ tmux.until { |lines| lines.item_count == 198 && lines.match_count == 198 }
tmux.send_keys '555'
- tmux.until { |lines| lines.item_count == 555 && lines.match_count == 1 }
+ tmux.until { |lines| lines.item_count == 553 && lines.match_count == 1 }
end
end