mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-10 15:50:56 +00:00
Make test cases less susceptible to timeout errors
This commit is contained in:
parent
0a8d2996dc
commit
400e443a0a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user