mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add one more retry for win32ole event matcher
to fix https://ci.appveyor.com/project/ruby/ruby/builds/24438615/job/yld1utsltxag9dr2
This commit is contained in:
parent
a85ed43294
commit
bef5829482
1 changed files with 3 additions and 3 deletions
|
@ -155,9 +155,9 @@ if defined?(WIN32OLE_EVENT)
|
|||
ivar = instance_variable_get(ivarname)
|
||||
|
||||
tries = 0
|
||||
while tries < 5 && !ivar.match(regexp)
|
||||
$stderr.puts "test_win32ole_event.rb: retrying until #{ivarname} matches #{regexp} (tries: #{tries})..."
|
||||
sleep(2 ** tries) # sleep at most 31s in total
|
||||
while tries < 6 && !ivar.match(regexp)
|
||||
$stderr.puts "test_win32ole_event.rb: retrying until #{ivarname} (#{ivar}) matches #{regexp} (tries: #{tries})..."
|
||||
sleep(2 ** tries) # sleep at most 63s in total
|
||||
ivar = instance_variable_get(ivarname)
|
||||
tries += 1
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue