Skip to content

Commit

Permalink
Fix flaky test case
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed Feb 27, 2024
1 parent cd61296 commit b2eb651
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_go.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2582,6 +2582,7 @@ def test_change_preview_window
def test_change_preview_window_rotate
tmux.send_keys "seq 100 | #{FZF} --preview-window left,border-none --preview 'echo hello' --bind '" \
"a:change-preview-window(right|down|up|hidden|)'", :Enter
tmux.until { |lines| assert(lines.any? { _1.include?('100/100') }) }
3.times do
tmux.until { |lines| lines[0].start_with?('hello') }
tmux.send_keys 'a'
Expand Down

0 comments on commit b2eb651

Please sign in to comment.