[前][次][番号順一覧][スレッド一覧]

ruby-changes:36657

From: usa <ko1@a...>
Date: Sun, 7 Dec 2014 22:59:29 +0900 (JST)
Subject: [ruby-changes:36657] usa:r48738 (trunk): * test/net/imap/test_imap.rb (ImapTest#imaps_test): forced error on SSL sockets

usa	2014-12-07 22:59:17 +0900 (Sun, 07 Dec 2014)

  New Revision: 48738

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48738

  Log:
    * test/net/imap/test_imap.rb (ImapTest#imaps_test): forced error on SSL sockets
      causes Errno::ECONNRESET or Errno::ECONNABORTED instead of Errno::EPIPE on
      Windows.

  Modified files:
    trunk/test/net/imap/test_imap.rb
Index: test/net/imap/test_imap.rb
===================================================================
--- test/net/imap/test_imap.rb	(revision 48737)
+++ test/net/imap/test_imap.rb	(revision 48738)
@@ -492,7 +492,7 @@ class IMAPTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/imap/test_imap.rb#L492
         ensure
           sock.close
         end
-      rescue Errno::EPIPE
+      rescue Errno::EPIPE, Errno::ECONNRESET, Errno::ECONNABORTED
       end
     end
     begin

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]