1
0
Fork 0
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:
Takashi Kokubun 2019-05-10 11:54:15 +09:00
parent a85ed43294
commit bef5829482
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -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