1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_win32ole_event.rb: avoid unlimited retries

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
k0kubun 2018-12-24 03:48:32 +00:00
parent a976acd603
commit 3bfd7f02c7

View file

@ -160,6 +160,7 @@ if defined?(WIN32OLE_EVENT)
$stderr.puts "test_win32ole_event.rb: retrying until #{ivarname} matches #{regexp} (tries: #{tries})..." $stderr.puts "test_win32ole_event.rb: retrying until #{ivarname} matches #{regexp} (tries: #{tries})..."
sleep(2 ** tries) # sleep at most 31s in total sleep(2 ** tries) # sleep at most 31s in total
ivar = instance_variable_get(ivarname) ivar = instance_variable_get(ivarname)
tries += 1
end end
assert_match(regexp, ivar) assert_match(regexp, ivar)