File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ def test_post_connection_check
5353 cert = ssl . peer_cert
5454 assert OpenSSL ::SSL . verify_certificate_identity ( cert , "localhost.localdomain" )
5555 assert OpenSSL ::SSL . verify_certificate_identity ( cert , "127.0.0.1" )
56- assert ! OpenSSL ::SSL . verify_certificate_identity ( cert , "localhost" )
57- assert ! OpenSSL ::SSL . verify_certificate_identity ( cert , "foo.example.com" )
56+ refute OpenSSL ::SSL . verify_certificate_identity ( cert , "localhost" )
57+ refute OpenSSL ::SSL . verify_certificate_identity ( cert , "foo.example.com" )
5858 end
5959
6060 now = Time . now
@@ -74,9 +74,9 @@ def test_post_connection_check
7474 assert_raise ( sslerr ) { ssl . post_connection_check ( "foo.example.com" ) }
7575 cert = ssl . peer_cert
7676 assert OpenSSL ::SSL . verify_certificate_identity ( cert , "localhost.localdomain" )
77- assert ! OpenSSL ::SSL . verify_certificate_identity ( cert , "127.0.0.1" )
78- assert ! OpenSSL ::SSL . verify_certificate_identity ( cert , "localhost" )
79- assert ! OpenSSL ::SSL . verify_certificate_identity ( cert , "foo.example.com" )
77+ refute OpenSSL ::SSL . verify_certificate_identity ( cert , "127.0.0.1" )
78+ refute OpenSSL ::SSL . verify_certificate_identity ( cert , "localhost" )
79+ refute OpenSSL ::SSL . verify_certificate_identity ( cert , "foo.example.com" )
8080 end
8181 end
8282
You can’t perform that action at this time.
0 commit comments