You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2021/08/01 21:25:36 UTC

[commons-net] branch master updated: Shorter sleep

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

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git


The following commit(s) were added to refs/heads/master by this push:
     new c16df1b  Shorter sleep
c16df1b is described below

commit c16df1bfca3a5ed7586bb0e6125d66fe5dababa9
Author: Sebb <se...@apache.org>
AuthorDate: Sun Aug 1 22:25:29 2021 +0100

    Shorter sleep
---
 src/test/java/org/apache/commons/net/ftp/FTPSClientTest.java | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/test/java/org/apache/commons/net/ftp/FTPSClientTest.java b/src/test/java/org/apache/commons/net/ftp/FTPSClientTest.java
index c5dedff..9ba15d2 100644
--- a/src/test/java/org/apache/commons/net/ftp/FTPSClientTest.java
+++ b/src/test/java/org/apache/commons/net/ftp/FTPSClientTest.java
@@ -177,9 +177,6 @@ public class FTPSClientTest {
 
     private FTPSClient loginClient() throws SocketException, IOException {
         trace(">>loginClient");
-        // try {
-        //     Thread.sleep(5000); // See if a short sleep between logins helps
-        // } catch (InterruptedException e) {};
         final FTPSClient client = new FTPSClient(IMPLICIT);
         client.addProtocolCommandListener(new PrintCommandListener(System.err));
         //
@@ -207,7 +204,7 @@ public class FTPSClientTest {
         //
         trace(">>loginClient-login");
         try {
-            Thread.sleep(1000); // See if a short sleep before USER command helps
+            Thread.sleep(500); // See if a short sleep before USER command helps
         } catch (InterruptedException e) {};
         assertTrue(client.login("test", "test"));
         assertClientCode(client);