summaryrefslogtreecommitdiff
path: root/test/net
diff options
context:
space:
mode:
Diffstat (limited to 'test/net')
-rw-r--r--test/net/http/test_https.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/net/http/test_https.rb b/test/net/http/test_https.rb
index 1b8841a..e9aee15 100644
--- a/test/net/http/test_https.rb
+++ b/test/net/http/test_https.rb
@@ -45,8 +45,8 @@ class TestNetHTTPS < Test::Unit::TestCase
assert_equal($test_net_http_data, res.body)
}
# TODO: OpenSSL 1.1.1h seems to yield only SERVER_CERT; need to check the incompatibility
- certs.each do |cert|
- assert_include([SERVER_CERT.to_der, CA_CERT.to_der], cert.to_der)
+ certs.zip([CA_CERT, SERVER_CERT][-certs.size..]) do |actual, expected|
+ assert_equal(expected.to_der, actual.to_der)
end
rescue SystemCallError
skip $!
@@ -66,8 +66,8 @@ class TestNetHTTPS < Test::Unit::TestCase
assert_equal($test_net_http_data, res.body)
}
# TODO: OpenSSL 1.1.1h seems to yield only SERVER_CERT; need to check the incompatibility
- certs.each do |cert|
- assert_include([SERVER_CERT.to_der, CA_CERT.to_der], cert.to_der)
+ certs.zip([CA_CERT, SERVER_CERT][-certs.size..]) do |actual, expected|
+ assert_equal(expected.to_der, actual.to_der)
end
end