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) (elastic#111201)

- 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 authored Jul 23, 2024
1 parent c6df8fb commit 1a207c4
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 1a207c4

Please sign in to comment.