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
|
def prepare
|
||||||
tries = 0
|
tries = 0
|
||||||
begin
|
begin
|
||||||
self.send_keys 'C-u', 'hello', 'Right'
|
self.until do |lines|
|
||||||
self.until { |lines| lines[-1].end_with?('hello') }
|
self.send_keys 'C-u', 'hello'
|
||||||
|
lines[-1].end_with?('hello')
|
||||||
|
end
|
||||||
rescue Exception
|
rescue Exception
|
||||||
(tries += 1) < 5 ? retry : raise
|
(tries += 1) < 5 ? retry : raise
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user