From 99f1e02766fab9ca95ba72b34f36e2d8ce398042 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 4 Mar 2020 08:37:45 +0900 Subject: [PATCH] Fix flaky test case Make sure that the shell is ready before hitting CTRL-R 1) Error: TestFish#test_ctrl_r_multiline: RuntimeError: timeout test/test_go.rb:50:in `wait' test/test_go.rb:125:in `until' test/test_go.rb:1857:in `test_ctrl_r_multiline' --- test/test_go.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_go.rb b/test/test_go.rb index fac25dcc..d539658c 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -1853,6 +1853,7 @@ module TestShell def test_ctrl_r_multiline tmux.send_keys 'echo "foo', :Enter, 'bar"', :Enter tmux.until { |lines| lines[-2..-1] == ['foo', 'bar'] } + tmux.prepare tmux.send_keys 'C-r' tmux.until { |lines| lines[-1] == '>' } tmux.send_keys 'foo bar'