File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ def test_post_connection_check
53
53
cert = ssl . peer_cert
54
54
assert OpenSSL ::SSL . verify_certificate_identity ( cert , "localhost.localdomain" )
55
55
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" )
58
58
end
59
59
60
60
now = Time . now
@@ -74,9 +74,9 @@ def test_post_connection_check
74
74
assert_raise ( sslerr ) { ssl . post_connection_check ( "foo.example.com" ) }
75
75
cert = ssl . peer_cert
76
76
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" )
80
80
end
81
81
end
82
82
You can’t perform that action at this time.
0 commit comments