public static void assertPortsAvailableEventually(final Map<String, Integer> ports) { // If we get into a TCP TIMED-WAIT state, it could take 4 minutes for the port to come available. // Could that be causing our integration tests to fail sometimes when run in the suite?! // Let's wait for the required ports in setup, rather than running+failing the test. assertPortsAvailableEventually(ports, Duration.minutes(4)); }
public static void assertCassandraPortsAvailableEventually() { Map<String, Integer> ports = getCassandraDefaultPorts(); NetworkingTestUtils.assertPortsAvailableEventually(ports); LOG.info("Confirmed Cassandra ports are available: "+ports); }