This is an automated email from the ASF dual-hosted git repository. elecharny pushed a commit to branch 2.0.X in repository https://gitbox.apache.org/repos/asf/mina.git
The following commit(s) were added to refs/heads/2.0.X by this push: new 9c83a2d Added a temporisation to have the loop working 9c83a2d is described below commit 9c83a2dc0042a8c713f126fcf212914771869dff Author: emmanuel lecharny <elecha...@apache.org> AuthorDate: Tue Feb 8 01:29:29 2022 +0100 Added a temporisation to have the loop working --- .../src/test/java/org/apache/mina/transport/AbstractBindTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ba980b6..b637102 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 @@ -156,11 +156,14 @@ public abstract class AbstractBindTest { } @Test - public void testManyTimes() throws IOException { + public void testManyTimes() throws IOException, InterruptedException { bind(true); for (int i = 0; i < 1024; i++) { acceptor.unbind(); + + Thread.sleep(2); + acceptor.bind(); } }