Skip to content
Myr

Fix flaky test case

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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'

authored by Junegunn Choi · committed by Junegunn Choi · parent 242c0db · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • tests:+1 added−0 removed

1 file+1 added−0 removed

modified:test/test_go.rb+1 added
1851 unmodified lines
18521853 def test_ctrl_r_multiline1854 tmux.send_keys 'echo "foo', :Enter, 'bar"', :Enter1855 tmux.until { |lines| lines[-2..-1] == ['foo', 'bar'] }1856 tmux.prepare1857 tmux.send_keys 'C-r'1858 tmux.until { |lines| lines[-1] == '>' }1859 tmux.send_keys 'foo bar'1860 tmux.until { |lines| lines[-3].end_with? 'bar"' }
287 unmodified lines