Skip to content

Add timeout delays for docker test #269

@kevinwallimann

Description

@kevinwallimann

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions