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:
parent
a976acd603
commit
3bfd7f02c7
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue