hyperdrive icon indicating copy to clipboard operation
hyperdrive copied to clipboard

Add timeout delays for docker test

Open kevinwallimann opened this issue 3 years ago • 0 comments

Sometimes, docker tests using testcontainers fail with an error message like org.testcontainers.containers.ContainerLaunchException: Timed out waiting for URL to be accessible

This may be fixed by adding a startup delay, e.g.

    container = new KafkaContainer()
    container.withStartupTimeout(Duration.of(5, ChronoUnit.MINUTES))
    container.start();

kevinwallimann avatar Jun 16 '22 08:06 kevinwallimann