ruby-changes:55695
From: Takashi <ko1@a...>
Date: Fri, 10 May 2019 11:54:45 +0900 (JST)
Subject: [ruby-changes:55695] Takashi Kokubun: bef5829482 (trunk): Add one more retry for win32ole event matcher
https://git.ruby-lang.org/ruby.git/commit/?id=bef5829482 From bef5829482ab410111911f2472442ff0dfbd3838 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Fri, 10 May 2019 11:54:15 +0900 Subject: Add one more retry for win32ole event matcher to fix https://ci.appveyor.com/project/ruby/ruby/builds/24438615/job/yld1utsltxag9dr2 diff --git a/test/win32ole/test_win32ole_event.rb b/test/win32ole/test_win32ole_event.rb index 79fe9dd..3ab60c9 100644 --- a/test/win32ole/test_win32ole_event.rb +++ b/test/win32ole/test_win32ole_event.rb @@ -155,9 +155,9 @@ if defined?(WIN32OLE_EVENT) https://github.com/ruby/ruby/blob/trunk/test/win32ole/test_win32ole_event.rb#L155 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/