Skip to content
Myr

Make test cases less susceptible to timeout errors

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 0a8d299 · Browse files · 1 file+4 added−2 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+4 added−2 removed

  • tests:+4 added−2 removed

1 file+4 added−2 removed

modified:test/test_go.rb+4 added-2 removed
134 unmodified lines
135136 def prepare137 tries = 0138 begin139 self.send_keys 'C-u', 'hello', 'Right'140 self.until { |lines| lines[-1].end_with?('hello') }139 self.until do |lines|140 self.send_keys 'C-u', 'hello'141 lines[-1].end_with?('hello')142 end143 rescue Exception144 (tries += 1) < 5 ? retry : raise145 end146 self.send_keys 'C-u'
1411 unmodified lines