diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-09-24 19:34:16 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-09-24 19:34:16 +0900 |
commit | 1917afa34bca55ba1ea578234132b7e4479ea3c9 (patch) | |
tree | 8af024abb4a2891583fed2529af03ca878667de4 /test/net/http | |
parent | 4405423c871698c36e4e4f24d89f17033b18b19c (diff) | |
download | ruby-1917afa34bca55ba1ea578234132b7e4479ea3c9.tar.gz |
test/net/http/test_https.rb: the order of verify_callback seems to vary
... depending upon the environment.
Diffstat (limited to 'test/net/http')
-rw-r--r-- | test/net/http/test_https.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/net/http/test_https.rb b/test/net/http/test_https.rb index deeb12d9df..1b8841ad11 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.zip([SERVER_CERT, CA_CERT]) do |actual, expected| - assert_equal(expected.to_der, actual.to_der) + certs.each do |cert| + assert_include([SERVER_CERT.to_der, CA_CERT.to_der], cert.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.zip([SERVER_CERT, CA_CERT]) do |actual, expected| - assert_equal(expected.to_der, actual.to_der) + certs.each do |cert| + assert_include([SERVER_CERT.to_der, CA_CERT.to_der], cert.to_der) end end |