From 673e9300ffa2634fab3f8cf297db9be009e85acd Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 4 Apr 2018 15:02:45 +0200 Subject: [PATCH] tweaked tests --- test/dorkbox/network/ReconnectTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/dorkbox/network/ReconnectTest.java b/test/dorkbox/network/ReconnectTest.java index 37f1b612..b4b4cdb7 100644 --- a/test/dorkbox/network/ReconnectTest.java +++ b/test/dorkbox/network/ReconnectTest.java @@ -98,6 +98,8 @@ class ReconnectTest extends BaseTest { } } }); + server.bind(false); + // ---- @@ -131,7 +133,7 @@ class ReconnectTest extends BaseTest { } }); - server.bind(false); + int count = 100; int initialCount = 2; @@ -149,7 +151,7 @@ class ReconnectTest extends BaseTest { synchronized (receivedCount) { while (this.receivedCount.get() != target) { if (waitingRetryCount-- < 0) { - System.out.println("Aborting..."); + System.out.println("Aborting unit test... wrong count!"); stopEndPoints(); assertEquals(target, this.receivedCount.get()); }