summaryrefslogtreecommitdiff
path: root/test/net
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-09 17:51:43 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-09 17:51:43 +0000
commitbf4b7f3b8cd13a27fe3ebd1f59f8c04fdf3c716e (patch)
treed1c886200b68694f8fb0943359dfd70bcc832f75 /test/net
parent9d237f434ed56ff980979b71aaea50371163879b (diff)
* test/net/http/test_https.rb
(TestNetHTTPS#test_certificate_verify_failure): on Windows, Errno::ECONNRESET will be raised when the verify is failure at the client side, and it'll be eaten by WEBrick. * test/open-uri/test_ssl.rb (TestOpenURISSL#test_validation_failure): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net')
-rw-r--r--test/net/http/test_https.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/net/http/test_https.rb b/test/net/http/test_https.rb
index 486375a..987ea7c 100644
--- a/test/net/http/test_https.rb
+++ b/test/net/http/test_https.rb
@@ -149,10 +149,14 @@ class TestNetHTTPS < Test::Unit::TestCase
end
}
assert_match(/certificate verify failed/, ex.message)
- @log_tester = lambda {|log|
- assert_equal(1, log.length)
- assert_match(/ERROR OpenSSL::SSL::SSLError:/, log[0])
- }
+ unless /mswin|mingw/ =~ RUBY_PLATFORM
+ # on Windows, Errno::ECONNRESET will be raised, and it'll be eaten by
+ # WEBrick
+ @log_tester = lambda {|log|
+ assert_equal(1, log.length)
+ assert_match(/ERROR OpenSSL::SSL::SSLError:/, log[0])
+ }
+ end
end
def test_identity_verify_failure