Skip to content
Myr

Use a more robust way to check if the shell is ready

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

authored by Junegunn Choi · committed by Junegunn Choi · parent 9f0626d · Browse files · 1 file+1 added−1 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−1 removed

  • tests:+1 added−1 removed

1 file+1 added−1 removed

modified:test/test_go.rb+1 added-1 removed
173 unmodified lines
174 def prepare175 tries = 0176 begin177 self.until do |lines|178 send_keys 'C-u', 'hello'178 send_keys ' ', 'C-u', 'hello', :Left, :Right179 lines[-1].end_with?('hello')180 end181 rescue StandardError182 (tries += 1) < 5 ? retry : raise
1918 unmodified lines