diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2016-04-15 12:57:38 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-04-15 12:57:38 +0900 |
commit | 5f63a7b587b4ce221d1e90a559051c51fad2ff78 (patch) | |
tree | 7193c8514ccc7ff119ea634124e0deda8068f05b | |
parent | d9ce797d889d67e6c41da5975471fc0eb0c796e4 (diff) |
Fix flaky test case
-rw-r--r-- | test/test_go.rb | 3 |
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' |