Added more info if the test fails

This commit is contained in:
nathan 2020-05-08 01:13:20 +02:00
parent 661957cc65
commit 2dfea11c09

View File

@ -208,7 +208,14 @@ class ReconnectTest extends BaseTest {
}
}
assertEquals(count * initialCount, this.receivedCount.get());
int specified = count * initialCount;
int received = this.receivedCount.get();
if (specified != received) {
logger.error("NOTE: UDP can fail, even on loopback! See: http://www.isoc.org/INET97/proceedings/F3/F3_1.HTM");
}
assertEquals(specified, received);
} finally {
stopEndPoints();
waitForThreads(10);