summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-24 03:48:32 (GMT)
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-24 03:48:32 (GMT)
commit3bfd7f02c7cab690c21a6ca7b8942f4a5116dc6b (patch)
tree6cd17e5c704c0dbdea488efd0675aa28900d2893
parenta976acd6039bafea26fa5b2d3a1b69c508e84013 (diff)
test_win32ole_event.rb: avoid unlimited retries
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/win32ole/test_win32ole_event.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/win32ole/test_win32ole_event.rb b/test/win32ole/test_win32ole_event.rb
index 35671a3..b9902a0 100644
--- a/test/win32ole/test_win32ole_event.rb
+++ b/test/win32ole/test_win32ole_event.rb
@@ -160,6 +160,7 @@ if defined?(WIN32OLE_EVENT)
$stderr.puts "test_win32ole_event.rb: retrying until #{ivarname} matches #{regexp} (tries: #{tries})..."
sleep(2 ** tries) # sleep at most 31s in total
ivar = instance_variable_get(ivarname)
+ tries += 1
end
assert_match(regexp, ivar)