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

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 85e2443f8dfb8ae131f26f3c6e2bafc24c24cbcd
Author: Matthieu Baechler <[email protected]>
AuthorDate: Wed Apr 15 23:41:37 2020 +0200

    [Refactoring] use TimeUnit instead of long for sleep
---
 .../src/main/java/org/apache/james/mpt/session/ExternalSession.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/mpt/core/src/main/java/org/apache/james/mpt/session/ExternalSession.java 
b/mpt/core/src/main/java/org/apache/james/mpt/session/ExternalSession.java
index c74b136..17812a1 100644
--- a/mpt/core/src/main/java/org/apache/james/mpt/session/ExternalSession.java
+++ b/mpt/core/src/main/java/org/apache/james/mpt/session/ExternalSession.java
@@ -35,7 +35,6 @@ import org.awaitility.Duration;
 public final class ExternalSession implements Session {
 
     private static final byte[] CRLF = { '\r', '\n' };
-    public static final int FIVE_SECONDS = 5000;
 
     private final SocketChannel socket;
 
@@ -175,7 +174,7 @@ public final class ExternalSession implements Session {
 
     @Override
     public void await() throws Exception {
-        Thread.sleep(FIVE_SECONDS);
+        TimeUnit.SECONDS.sleep(5);
     }
 
     /**


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to