Skip to content
Snippets Groups Projects
Unverified Commit 400e443a authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Make test cases less susceptible to timeout errors

parent 0a8d2996
No related branches found
No related tags found
No related merge requests found
......@@ -136,8 +136,10 @@ class Tmux
def prepare
tries = 0
begin
self.send_keys 'C-u', 'hello', 'Right'
self.until { |lines| lines[-1].end_with?('hello') }
self.until do |lines|
self.send_keys 'C-u', 'hello'
lines[-1].end_with?('hello')
end
rescue Exception
(tries += 1) < 5 ? retry : raise
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment