ruby-changes:52275
From: eregon <ko1@a...>
Date: Tue, 21 Aug 2018 00:48:32 +0900 (JST)
Subject: [ruby-changes:52275] eregon:r64483 (trunk): Try 4 times for WIN32OLE specs
eregon 2018-08-21 00:48:27 +0900 (Tue, 21 Aug 2018) New Revision: 64483 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64483 Log: Try 4 times for WIN32OLE specs * They seem to fail a lot on: http://mswinci.japaneast.cloudapp.azure.com/vc12-x64/ruby-trunk/recent.html Modified files: trunk/spec/ruby/library/win32ole/fixtures/classes.rb Index: spec/ruby/library/win32ole/fixtures/classes.rb =================================================================== --- spec/ruby/library/win32ole/fixtures/classes.rb (revision 64482) +++ spec/ruby/library/win32ole/fixtures/classes.rb (revision 64483) @@ -1,14 +1,15 @@ https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/win32ole/fixtures/classes.rb#L1 module WIN32OLESpecs def self.new_ole(name) - retried = false + retries_left = 3 begin WIN32OLE.new(name) rescue WIN32OLERuntimeError => e - unless retried - retried = true + if retries_left > 0 + retries_left -= 1 retry + else + raise e end - raise e end end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/