From 5f63a7b587b4ce221d1e90a559051c51fad2ff78 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 15 Apr 2016 12:57:38 +0900 Subject: [PATCH] Fix flaky test case --- test/test_go.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_go.rb b/test/test_go.rb index 7c562a8..9d04eda 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'