File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ def test_bind_tls_with_bad_hostname
61
61
tls_options : TLS_OPTS . merge ( verify_mode : OpenSSL ::SSL ::VERIFY_PEER ,
62
62
ca_file : CA_FILE ) ,
63
63
)
64
- error = assert_raise Net ::LDAP ::ConnectionRefusedError do
64
+ error = assert_raise Net ::LDAP ::Error ,
65
+ Net ::LDAP ::ConnectionRefusedError do
65
66
@ldap . bind BIND_CREDS
66
67
end
67
68
assert_equal (
@@ -108,7 +109,8 @@ def test_bind_tls_with_multiple_bogus_hosts
108
109
tls_options : TLS_OPTS . merge ( verify_mode : OpenSSL ::SSL ::VERIFY_PEER ,
109
110
ca_file : CA_FILE ) ,
110
111
)
111
- error = assert_raise Net ::LDAP ::ConnectionRefusedError do
112
+ error = assert_raise Net ::LDAP ::Error ,
113
+ Net ::LDAP ::ConnectionRefusedError do
112
114
@ldap . bind BIND_CREDS
113
115
end
114
116
assert_equal ( "TODO - fix this" ,
You can’t perform that action at this time.
0 commit comments