diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2024-03-29 16:15:53 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2024-03-29 16:15:53 +0900 |
commit | 07f8f70c5b9ec64e94c207cf1c9be711ee8e1da0 (patch) | |
tree | f80305c12a4e1772883cb13dd0e851c42f5da23f | |
parent | f625c5aabe0e4cdbfc4a1d5d526a011d3c68c697 (diff) |
Fix flaky test case
-rwxr-xr-x | test/test_go.rb | 5 |
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] } |