From 99ef8057f1b9e04ce9e4b4233c8a378b6d46b680 Mon Sep 17 00:00:00 2001 From: Andreas Eberle Date: Sun, 26 Apr 2015 11:01:23 +0200 Subject: [PATCH] Removed obsolete assertions from AsyncChannelTest. --- .../network/infrastructure/channel/AsyncChannelTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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();