summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-03-29 16:15:53 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-03-29 16:15:53 +0900
commit07f8f70c5b9ec64e94c207cf1c9be711ee8e1da0 (patch)
treef80305c12a4e1772883cb13dd0e851c42f5da23f
parentf625c5aabe0e4cdbfc4a1d5d526a011d3c68c697 (diff)
Fix flaky test case
-rwxr-xr-xtest/test_go.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index e4d365e9..5c07dde2 100755
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -3406,7 +3406,10 @@ module CompletionTest
tmux.send_keys 'cat /tmp/fzf\ test/**', :Tab
tmux.until { |lines| assert_operator lines.match_count, :>, 0 }
tmux.send_keys 'foobar$'
- tmux.until { |lines| assert_equal 1, lines.match_count }
+ tmux.until do |lines|
+ assert_equal 1, lines.match_count
+ assert lines.any_include?('> /tmp/fzf test/foobar')
+ end
tmux.send_keys :Enter
tmux.until(true) { |lines| assert_equal 'cat /tmp/fzf\ test/foobar', lines[-1] }