Added appropriate note on reconnect test (where it sometimes fails with UDP) that it can fail with UDP because it's unreliable - even on loopback
This commit is contained in:
parent
c609bb7328
commit
515ee83de4
@ -152,7 +152,10 @@ class ReconnectTest extends BaseTest {
|
|||||||
synchronized (receivedCount) {
|
synchronized (receivedCount) {
|
||||||
while (this.receivedCount.get() != target) {
|
while (this.receivedCount.get() != target) {
|
||||||
if (waitingRetryCount-- < 0) {
|
if (waitingRetryCount-- < 0) {
|
||||||
System.out.println("Aborting unit test... wrong count!");
|
System.err.println("Aborting unit test... wrong count!");
|
||||||
|
if (useUDP) {
|
||||||
|
System.err.println("NOTE: UDP can fail, even on loopback!");
|
||||||
|
}
|
||||||
stopEndPoints();
|
stopEndPoints();
|
||||||
assertEquals(target, this.receivedCount.get());
|
assertEquals(target, this.receivedCount.get());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user