From 1a207c40c269001f2e081ee742466a22da1a834f Mon Sep 17 00:00:00 2001 From: Rene Groeschke Date: Tue, 23 Jul 2024 17:49:29 +0200 Subject: [PATCH] Extend timeout of Krb5kDcContainer test container startup (#111198) (#111201) - testcontainer startup timeout defaults to 60s and we see ocassionally this fixture taking longer to startup in certain environments fixes #111140 --- .../elasticsearch/test/fixtures/krb5kdc/Krb5kDcContainer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/fixtures/krb5kdc-fixture/src/main/java/org/elasticsearch/test/fixtures/krb5kdc/Krb5kDcContainer.java b/test/fixtures/krb5kdc-fixture/src/main/java/org/elasticsearch/test/fixtures/krb5kdc/Krb5kDcContainer.java index fa75b57ea87a6..14357b6d47bbc 100644 --- a/test/fixtures/krb5kdc-fixture/src/main/java/org/elasticsearch/test/fixtures/krb5kdc/Krb5kDcContainer.java +++ b/test/fixtures/krb5kdc-fixture/src/main/java/org/elasticsearch/test/fixtures/krb5kdc/Krb5kDcContainer.java @@ -22,6 +22,7 @@ import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; +import java.time.Duration; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -74,6 +75,7 @@ public Krb5kDcContainer(ProvisioningId provisioningId) { this.provisioningId = provisioningId; withNetwork(Network.newNetwork()); addExposedPorts(88, 4444); + withStartupTimeout(Duration.ofMinutes(2)); withCreateContainerCmdModifier(cmd -> { // Add previously exposed ports and UDP port List exposedPorts = new ArrayList<>();