protected void waitUntilReadyAndSucceed(GenericContainer<?> container) {
        // start() blocks until successful or timeout
        container.start();

        assertThat(ready)
            .as(String.format("Expected container to be ready after timeout of %sms", WAIT_TIMEOUT_MILLIS))
            .isTrue();
    }
Expects that the WaitStrategy returns successfully after connection to a container with a listening port.

@param container the container to start
core/src/test/java/org/testcontainers/junit/wait/strategy/AbstractWaitStrategyTest.java