AbsaOSS / hyperdrive

Extensible streaming ingestion pipeline on top of Apache Spark
Apache License 2.0
44 stars 13 forks source link

Add timeout delays for docker test #269

Open kevinwallimann opened 2 years ago

kevinwallimann commented 2 years ago

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