This is an automated email from the ASF dual-hosted git repository. elecharny pushed a commit to branch 2.1.X in repository https://gitbox.apache.org/repos/asf/mina.git
The following commit(s) were added to refs/heads/2.1.X by this push: new 2331425 Increased the time slept between two test to eliminate most of the errors in the loop (port already bound) 2331425 is described below commit 2331425ae979c06326b93c5d5aa849542b21d2dd Author: emmanuel lecharny <elecha...@apache.org> AuthorDate: Sat Feb 5 06:13:23 2022 +0100 Increased the time slept between two test to eliminate most of the errors in the loop (port already bound) --- .../src/test/java/org/apache/mina/transport/AbstractBindTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mina-core/src/test/java/org/apache/mina/transport/AbstractBindTest.java b/mina-core/src/test/java/org/apache/mina/transport/AbstractBindTest.java index 64ff8e6..0af7caa 100644 --- a/mina-core/src/test/java/org/apache/mina/transport/AbstractBindTest.java +++ b/mina-core/src/test/java/org/apache/mina/transport/AbstractBindTest.java @@ -166,7 +166,7 @@ public abstract class AbstractBindTest { for (int i = 0; i < 1024; i++) { Assert.assertTrue("Bound addresses is empty", acceptor.getLocalAddresses().size() > 0); acceptor.unbind(); - Thread.sleep(1); + Thread.sleep(2); Assert.assertTrue("Bound addresses is not empty", acceptor.getLocalAddresses().size() == 0); acceptor.bind(); } @@ -309,4 +309,4 @@ public abstract class AbstractBindTest { session.write(wb); } } -} \ No newline at end of file +}