Skip to content

Commit

Permalink
Extend timeout of Krb5kDcContainer test container startup (elastic#11…
Browse files Browse the repository at this point in the history
…1198)

- testcontainer startup timeout defaults to 60s and we see ocassionally this fixture
taking longer to startup in certain environments

fixes elastic#111140
  • Loading branch information
breskeby committed Jul 23, 2024
1 parent 0e6673f commit 59213ce
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<ExposedPort> exposedPorts = new ArrayList<>();
Expand Down

0 comments on commit 59213ce

Please sign in to comment.