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 @@ -44,7 +44,7 @@ def test_bind_tls_with_cafile
4444
4545 def test_bind_tls_with_verify_none
4646 @ldap . host = '127.0.0.1'
47- @ldap . port = 9389
47+ @ldap . port = 9389 unless ENV [ 'TRAVIS' ] == 'true'
4848 @ldap . encryption (
4949 method : :start_tls ,
5050 tls_options : TLS_OPTS . merge ( verify_mode : OpenSSL ::SSL ::VERIFY_NONE ) ,
@@ -55,13 +55,13 @@ def test_bind_tls_with_verify_none
5555
5656 def test_bind_tls_with_bad_hostname
5757 @ldap . host = '127.0.0.1'
58- @ldap . port = 9389
58+ @ldap . port = 9389 unless ENV [ 'TRAVIS' ] == 'true'
5959 @ldap . encryption (
6060 method : :start_tls ,
6161 tls_options : TLS_OPTS . merge ( verify_mode : OpenSSL ::SSL ::VERIFY_PEER ,
6262 ca_file : CA_FILE ) ,
6363 )
64- error = assert_raise Net ::LDAP ::Error do
64+ error = assert_raise Net ::LDAP ::ConnectionRefusedError do
6565 @ldap . bind BIND_CREDS
6666 end
6767 assert_equal (
@@ -72,7 +72,7 @@ def test_bind_tls_with_bad_hostname
7272
7373 def test_bind_tls_with_valid_hostname
7474 @ldap . host = 'localhost'
75- @ldap . port = 9389
75+ @ldap . port = 9389 unless ENV [ 'TRAVIS' ] == 'true'
7676 @ldap . encryption (
7777 method : :start_tls ,
7878 tls_options : TLS_OPTS . merge ( verify_mode : OpenSSL ::SSL ::VERIFY_PEER ,
@@ -108,7 +108,7 @@ def test_bind_tls_with_multiple_bogus_hosts
108108 tls_options : TLS_OPTS . merge ( verify_mode : OpenSSL ::SSL ::VERIFY_PEER ,
109109 ca_file : CA_FILE ) ,
110110 )
111- error = assert_raise Net ::LDAP ::Error do
111+ error = assert_raise Net ::LDAP ::ConnectionRefusedError do
112112 @ldap . bind BIND_CREDS
113113 end
114114 assert_equal ( "TODO - fix this" ,
You can’t perform that action at this time.
0 commit comments