diff --git a/jsettlers.tests/tests.network/jsettlers/network/infrastructure/channel/AsyncChannelTest.java b/jsettlers.tests/tests.network/jsettlers/network/infrastructure/channel/AsyncChannelTest.java index daae7b0c1a..12afab9f8a 100644 --- a/jsettlers.tests/tests.network/jsettlers/network/infrastructure/channel/AsyncChannelTest.java +++ b/jsettlers.tests/tests.network/jsettlers/network/infrastructure/channel/AsyncChannelTest.java @@ -69,12 +69,10 @@ public void testAsyncReceiveTime() throws InterruptedException { TestPacket testPackage = new TestPacket("bla", -234234); for (int i = 0; i < RUNS; i++) { - long start = System.currentTimeMillis(); c1.sendPacketAsync(ENetworkKey.TEST_PACKET, testPackage); - assertTrue(System.currentTimeMillis() - start < 5); // check that the sending is asynchronous } - Thread.sleep(30); + Thread.sleep(40); List packets = listener.popBufferedPackets();