summaryrefslogtreecommitdiff
path: root/test/win32ole
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-05-10 11:54:15 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-05-10 11:54:21 +0900
commitbef5829482ab410111911f2472442ff0dfbd3838 (patch)
tree9c7904b4d1b71fb7b5d8134289d309a254ee0adc /test/win32ole
parenta85ed43294700ed0dd11d22b5c3d5d37d2b1809c (diff)
Add one more retry for win32ole event matcher
to fix https://ci.appveyor.com/project/ruby/ruby/builds/24438615/job/yld1utsltxag9dr2
Diffstat (limited to 'test/win32ole')
-rw-r--r--test/win32ole/test_win32ole_event.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/win32ole/test_win32ole_event.rb b/test/win32ole/test_win32ole_event.rb
index 79fe9ddc72..3ab60c9797 100644
--- a/test/win32ole/test_win32ole_event.rb
+++ b/test/win32ole/test_win32ole_event.rb
@@ -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