Skip to content

Commit

Permalink
Increase Elasticsearch container startup timeout to 5 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
findinpath authored and findepi committed Mar 27, 2024
1 parent 12eb467 commit 0360c20
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.time.Duration;
import java.util.Map;

import static com.google.common.io.MoreFiles.deleteRecursively;
Expand Down Expand Up @@ -67,6 +68,7 @@ public ElasticsearchServer(Network network, String image)
container = new ElasticsearchContainer(dockerImageName);
container.withNetwork(network);
container.withNetworkAliases("elasticsearch-server");
container.withStartupTimeout(Duration.ofMinutes(5));

configurationPath = createTempDirectory(null);
Map<String, String> configurationFiles = ImmutableMap.<String, String>builder()
Expand Down

0 comments on commit 0360c20

Please sign in to comment.