You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by se...@apache.org on 2019/06/21 22:16:24 UTC

[directory-server] 02/03: Tweak tests on Windows

This is an automated email from the ASF dual-hosted git repository.

seelmann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-server.git

commit 6f7b0d07ffadb4af7f741eec1f8fe48b77b9df1d
Author: Stefan Seelmann <ma...@stefan-seelmann.de>
AuthorDate: Sat Jun 22 00:15:25 2019 +0200

    Tweak tests on Windows
---
 .../apache/directory/shared/client/api/LdapConnectionTest.java    | 8 ++++----
 .../apache/directory/shared/client/api/LdapSSLConnectionTest.java | 4 ++--
 .../org/apache/directory/server/operations/bind/SimpleBindIT.java | 2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapConnectionTest.java b/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapConnectionTest.java
index 6e75419..9d75d97 100644
--- a/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapConnectionTest.java
+++ b/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapConnectionTest.java
@@ -123,7 +123,7 @@ public class LdapConnectionTest extends AbstractLdapTestUnit
         try ( LdapConnection connection = new LdapNetworkConnection( Network.LOOPBACK_HOSTNAME,
             getLdapServer().getPort() ) )
         {
-            for ( int i = 0; i < 1000; i++ )
+            for ( int i = 0; i < 100; i++ )
             {
                 connection.bind( "uid=admin,ou=system", "secret" );
                 assertTrue( connection.isAuthenticated() );
@@ -144,7 +144,7 @@ public class LdapConnectionTest extends AbstractLdapTestUnit
         try ( LdapConnection connection = new LdapNetworkConnection( Network.LOOPBACK_HOSTNAME,
             getLdapServer().getPort() ) )
         {
-            for ( int i = 0; i < 1000; i++ )
+            for ( int i = 0; i < 100; i++ )
             {
                 connection.bind( "uid=admin,ou=system", "secret" );
                 assertTrue( connection.isAuthenticated() );
@@ -324,7 +324,7 @@ public void testLookup() throws Exception
     {
         try ( LdapConnection connection = new LdapNetworkConnection( "notexisting", 1234 ) )
         {
-            connection.setTimeOut( 1000L );
+            connection.setTimeOut( 10000L );
             connection.connect();
         }
         catch ( Exception e )
@@ -342,7 +342,7 @@ public void testLookup() throws Exception
     {
         try ( LdapConnection connection = new LdapNetworkConnection( Network.LOOPBACK_HOSTNAME, 123 ) )
         {
-            connection.setTimeOut( 1000L );
+            connection.setTimeOut( 10000L );
             connection.connect();
         }
         catch ( Exception e )
diff --git a/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapSSLConnectionTest.java b/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapSSLConnectionTest.java
index 3843128..8e19525 100644
--- a/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapSSLConnectionTest.java
+++ b/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapSSLConnectionTest.java
@@ -204,7 +204,7 @@ public class LdapSSLConnectionTest extends AbstractLdapTestUnit
     {
         try ( LdapNetworkConnection connection = new LdapNetworkConnection( sslConfig ) )
         {
-            for ( int i = 0; i < 100; i++ )
+            for ( int i = 0; i < 10; i++ )
             {
                 connection.connect();
                 assertTrue( connection.isConnected() );
@@ -371,7 +371,7 @@ public class LdapSSLConnectionTest extends AbstractLdapTestUnit
     {
         try ( LdapNetworkConnection connection = new LdapNetworkConnection( tlsConfig ) )
         {
-            for ( int i = 0; i < 100; i++ )
+            for ( int i = 0; i < 10; i++ )
             {
                 connection.startTls();
                 assertTrue( connection.isConnected() );
diff --git a/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java b/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java
index a8b8d99..d7379cd 100644
--- a/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java
+++ b/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java
@@ -529,7 +529,7 @@ public class SimpleBindIT extends AbstractLdapTestUnit
         try ( LdapNetworkConnection connection = new LdapNetworkConnection( Network.LOOPBACK_HOSTNAME,
             getLdapServer().getPort() ) )
         {
-            for ( int i = 0; i < 1000; i++ )
+            for ( int i = 0; i < 100; i++ )
             {
                 connection.bind( "uid=admin,ou=system", "secret" );
                 assertTrue( connection.isAuthenticated() );