Skip to content
Permalink
Browse files
Shorter sleep
  • Loading branch information
sebbASF committed Aug 1, 2021
1 parent d528c74 commit c16df1bfca3a5ed7586bb0e6125d66fe5dababa9
Showing 1 changed file with 1 addition and 4 deletions.
@@ -177,9 +177,6 @@ private void assertClientCode(final FTPSClient client) {

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 @@ private FTPSClient loginClient() throws SocketException, IOException {
//
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);

0 comments on commit c16df1b

Please sign in to comment.