diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2020-03-04 08:37:45 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-03-04 08:37:45 +0900 |
commit | 99f1e02766fab9ca95ba72b34f36e2d8ce398042 (patch) | |
tree | 205f499015c6c35aee3bd1b403faff74d3da224b | |
parent | 242c0db26b9a14e164ea70bbe1b7b23594381829 (diff) |
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'
-rwxr-xr-x | test/test_go.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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' |