summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-04-15 12:57:38 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2016-04-15 12:57:38 +0900
commit5f63a7b587b4ce221d1e90a559051c51fad2ff78 (patch)
tree7193c8514ccc7ff119ea634124e0deda8068f05b /test
parentd9ce797d889d67e6c41da5975471fc0eb0c796e4 (diff)
Fix flaky test case
Diffstat (limited to 'test')
-rw-r--r--test/test_go.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index 7c562a88..9d04eda0 100644
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -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'