File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ def test_get
4545 assert_equal ( $test_net_http_data, res . body )
4646 }
4747 # TODO: OpenSSL 1.1.1h seems to yield only SERVER_CERT; need to check the incompatibility
48- certs . each do |cert |
49- assert_include ( [ SERVER_CERT . to_der , CA_CERT . to_der ] , cert . to_der )
48+ certs . zip ( [ CA_CERT , SERVER_CERT ] [ - certs . size .. ] ) do |actual , expected |
49+ assert_equal ( expected . to_der , actual . to_der )
5050 end
5151 rescue SystemCallError
5252 skip $!
@@ -66,8 +66,8 @@ def test_get_SNI
6666 assert_equal ( $test_net_http_data, res . body )
6767 }
6868 # TODO: OpenSSL 1.1.1h seems to yield only SERVER_CERT; need to check the incompatibility
69- certs . each do |cert |
70- assert_include ( [ SERVER_CERT . to_der , CA_CERT . to_der ] , cert . to_der )
69+ certs . zip ( [ CA_CERT , SERVER_CERT ] [ - certs . size .. ] ) do |actual , expected |
70+ assert_equal ( expected . to_der , actual . to_der )
7171 end
7272 end
7373
You can’t perform that action at this time.
0 commit comments