Home
last modified time | relevance | path

Searched refs:expectedConnectionAttempts (Results 1 – 2 of 2) sorted by relevance

/libcore/luni/src/test/java/libcore/java/net/
DFtpURLConnectionTest.java429 public void waitAndAssertConnectionCount(int expectedConnectionAttempts) in waitAndAssertConnectionCount() argument
433 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()
DURLConnectionTest.java2325 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++) {