Searched refs:expectedConnectionAttempts (Results 1 – 2 of 2) sorted by relevance
429 public void waitAndAssertConnectionCount(int expectedConnectionAttempts) in waitAndAssertConnectionCount() argument433 expectedConnectionAttempts + 1, 300, TimeUnit.MILLISECONDS); in waitAndAssertConnectionCount()434 assertFalse("Observed more connections than the expected " + expectedConnectionAttempts, in waitAndAssertConnectionCount()436 assertEquals(expectedConnectionAttempts, connectionAttempts.availablePermits()); in waitAndAssertConnectionCount()
2325 int expectedConnectionAttempts = InetAddress.getAllByName(hostName).length;2328 final int[] socketConnectTimeouts = new int[expectedConnectionAttempts];2357 assertEquals(expectedConnectionAttempts, socketCreationCount[0]);2358 for (int i = 0; i < expectedConnectionAttempts; i++) {