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
45
45
assert_equal ( $test_net_http_data, res . body )
46
46
}
47
47
# 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 )
50
50
end
51
51
rescue SystemCallError
52
52
skip $!
@@ -66,8 +66,8 @@ def test_get_SNI
66
66
assert_equal ( $test_net_http_data, res . body )
67
67
}
68
68
# 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 )
71
71
end
72
72
end
73
73
You can’t perform that action at this time.
0 commit comments