summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authoremboss <emboss@ruby-lang.org>2012-05-25 13:24:47 +0000
committeremboss <emboss@ruby-lang.org>2012-05-25 13:24:47 +0000
commite243f7b7ab735ab2bf9d660c09504a06222dd2c5 (patch)
treee7878419dba4553764a59d5fd300a50e79a86baf /test
parent978e4caa6afc5323c72199622bd77b5309e25d87 (diff)
downloadruby-openssl-history-e243f7b7ab735ab2bf9d660c09504a06222dd2c5.tar.gz
* ext/openssl/ossl_ssl.c: Revert r35583
* test/openssl/test_ssl.rb: Handle ECONNRESET in code instead to avoid the test failing in Ruby CI [1] [1] http://u64.rubyci.org/~chkbuild/ruby-trunk/log/20120507T190102Z.log.html.gz#test-all git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/test_ssl.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_ssl.rb b/test/test_ssl.rb
index 5fff78f..f3f3c9c 100644
--- a/test/test_ssl.rb
+++ b/test/test_ssl.rb
@@ -516,6 +516,8 @@ end
ssl.sync_close = true
ssl.connect
yield ssl
+ rescue Errno::ECONNRESET => e
+ raise OpenSSL::SSL::SSLError.new(e.message)
ensure
ssl.close
end