summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-05-06 13:59:16 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-05-06 13:59:16 +0900
commit501577ab282af9fb64487c524fa9d038a2360d3a (patch)
treedf32b7c3f3b78840cc79ad389f2bfbcb00046b0f
parent5669f48343cac868eb7432950db61c9aa2383ab6 (diff)
downloadfzf-501577ab282af9fb64487c524fa9d038a2360d3a.tar.gz
Fix flaky test case
-rwxr-xr-xtest/test_go.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index aa7b35f9..d3e6b475 100755
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -2695,9 +2695,9 @@ class TestGoFZF < TestBase
def test_change_preview_window_should_not_reset_change_preview
tmux.send_keys "#{FZF} --preview-window up,border-none --bind 'start:change-preview(echo hello)' --bind 'enter:change-preview-window(border-left)'", :Enter
- tmux.until { |lines| assert_equal 'hello', lines[0] }
+ tmux.until { |lines| assert_includes lines, 'hello' }
tmux.send_keys :Enter
- tmux.until { |lines| assert_equal '│ hello', lines[0] }
+ tmux.until { |lines| assert_includes lines, '│ hello' }
end
def test_change_preview_window_rotate