ruby-changes:54314
From: k0kubun <ko1@a...>
Date: Mon, 24 Dec 2018 12:48:37 +0900 (JST)
Subject: [ruby-changes:54314] k0kubun:r66523 (trunk): test_win32ole_event.rb: avoid unlimited retries
k0kubun 2018-12-24 12:48:32 +0900 (Mon, 24 Dec 2018) New Revision: 66523 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66523 Log: test_win32ole_event.rb: avoid unlimited retries Modified files: trunk/test/win32ole/test_win32ole_event.rb Index: test/win32ole/test_win32ole_event.rb =================================================================== --- test/win32ole/test_win32ole_event.rb (revision 66522) +++ test/win32ole/test_win32ole_event.rb (revision 66523) @@ -160,6 +160,7 @@ if defined?(WIN32OLE_EVENT) https://github.com/ruby/ruby/blob/trunk/test/win32ole/test_win32ole_event.rb#L160 $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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/