JAVA-25341 fix Java networking flaky tests (#14798)
This commit is contained in:
parent
1f9bcc7ef1
commit
914d01d03d
|
@ -24,7 +24,7 @@ public class EchoIntegrationTest {
|
||||||
|
|
||||||
Executors.newSingleThreadExecutor()
|
Executors.newSingleThreadExecutor()
|
||||||
.submit(() -> new EchoServer().start(port));
|
.submit(() -> new EchoServer().start(port));
|
||||||
Thread.sleep(500);
|
Thread.sleep(2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
private EchoClient client = new EchoClient();
|
private EchoClient client = new EchoClient();
|
||||||
|
|
|
@ -27,7 +27,7 @@ public class GreetServerIntegrationTest {
|
||||||
|
|
||||||
Executors.newSingleThreadExecutor()
|
Executors.newSingleThreadExecutor()
|
||||||
.submit(() -> new GreetServer().start(port));
|
.submit(() -> new GreetServer().start(port));
|
||||||
Thread.sleep(500);
|
Thread.sleep(2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
|
|
|
@ -23,7 +23,7 @@ public class SocketEchoMultiIntegrationTest {
|
||||||
s.close();
|
s.close();
|
||||||
|
|
||||||
Executors.newSingleThreadExecutor().submit(() -> new EchoMultiServer().start(port));
|
Executors.newSingleThreadExecutor().submit(() -> new EchoMultiServer().start(port));
|
||||||
Thread.sleep(500);
|
Thread.sleep(2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue