Skip to content
Snippets Groups Projects
Commit 5f63a7b5 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Fix flaky test case

parent d9ce797d
No related branches found
No related tags found
No related merge requests found
......@@ -414,11 +414,12 @@ class TestGoFZF < TestBase
def test_expect
test = lambda do |key, feed, expected = key|
tmux.send_keys "seq 1 100 | #{fzf :expect, key}", :Enter
tmux.send_keys "seq 1 100 | #{fzf :expect, key}; sync", :Enter
tmux.until { |lines| lines[-2].include? '100/100' }
tmux.send_keys '55'
tmux.until { |lines| lines[-2].include? '1/100' }
tmux.send_keys *feed
tmux.prepare
assert_equal [expected, '55'], readonce.split($/)
end
test.call 'ctrl-t', 'C-T'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment