From a2e9366c849a61f1d11ecc8b1092e8b09450cddc Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 2 Nov 2019 13:14:47 +0900 Subject: [PATCH] Fix flaky test case --- test/test_go.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_go.rb b/test/test_go.rb index 724d847..86a6bf4 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -873,7 +873,7 @@ class TestGoFZF < TestBase def test_execute output = '/tmp/fzf-test-execute' - opts = %[--bind \\"alt-a:execute(echo [{}] >> #{output}),alt-b:execute[echo /{}{}/ >> #{output}],C:execute:echo /{}{}{}/ >> #{output}\\"] + opts = %[--bind \\"alt-a:execute(echo /{}/ >> #{output}),alt-b:execute[echo /{}{}/ >> #{output}],C:execute:echo /{}{}{}/ >> #{output}\\"] wait = ->(exp) { tmux.until { |lines| lines[-2].include? exp } } writelines tempname, %w[foo'bar foo"bar foo$bar] tmux.send_keys "cat #{tempname} | #{fzf opts}; sync", :Enter @@ -898,7 +898,7 @@ class TestGoFZF < TestBase wait['/3'] tmux.send_keys :Enter readonce - assert_equal %w[[foo'bar] [foo'bar] + assert_equal %w[/foo'bar/ /foo'bar/ /foo"barfoo"bar/ /foo"barfoo"bar/ /foo$barfoo$barfoo$bar/], File.readlines(output).map(&:chomp)