Skip to content

Commit c920255

Browse files
authored
Merge pull request #415 from hazelcast/tcp-naming-fixes
Fixes problem with tcp renaming in core.
2 parents 7175f0e + 458184e commit c920255

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

helper/src/main/java/com/hazelcast/examples/helper/CommonUtils.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import com.hazelcast.core.HazelcastInstance;
2020
import com.hazelcast.instance.impl.HazelcastInstanceProxy;
21-
import com.hazelcast.internal.nio.EndpointManager;
2221
import com.hazelcast.internal.util.EmptyStatement;
2322
import com.hazelcast.internal.util.ExceptionUtil;
2423

@@ -28,7 +27,6 @@
2827
import java.util.Random;
2928
import java.util.concurrent.CountDownLatch;
3029

31-
import static com.hazelcast.examples.helper.HazelcastUtils.getNode;
3230
import static java.util.concurrent.TimeUnit.MILLISECONDS;
3331
import static java.util.concurrent.TimeUnit.NANOSECONDS;
3432
import static java.util.concurrent.TimeUnit.SECONDS;
@@ -161,12 +159,9 @@ public static void sleepAtLeastMillis(long sleepFor) {
161159
public static void assertClusterSize(int expectedSize, HazelcastInstance instance) {
162160
int clusterSize = instance.getCluster().getMembers().size();
163161
if (expectedSize != clusterSize) {
164-
EndpointManager endpointManager = getNode(instance).getEndpointManager();
165-
int activeConnectionCount = endpointManager.getActiveConnections().size();
166-
throw new AssertionError(String.format("Cluster size is not correct. Expected: %d Actual: %d %s",
162+
throw new AssertionError(String.format("Cluster size is not correct. Expected: %d Actual: %d",
167163
expectedSize,
168-
clusterSize,
169-
"ActiveConnectionCount: " + activeConnectionCount));
164+
clusterSize));
170165
}
171166
}
172167

0 commit comments

Comments
 (0)