Skip to content
Snippets Groups Projects
Commit d7bd480e authored by OZGCloud's avatar OZGCloud
Browse files

OZG-7346: Experiment with longer startup time

parent e48af2e3
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ public class ElasticsearchTestClient {
private static final String USER = "elastic";
private static final String PASSWORD = "s3cret";
private static final int PORT = 9200;
private static final String SCHEME = "http";
private static final String SCHEME = "https";
private static final Duration STARTUP_TIMEOUT = Duration.of(2, ChronoUnit.MINUTES);
public static final ElasticsearchContainer ELASTICSEARCH_CONTAINER = new ElasticsearchContainer(IMAGE_NAME)
......@@ -51,7 +51,7 @@ public class ElasticsearchTestClient {
.withExposedPorts(PORT)
.withPassword(PASSWORD)
.withStartupTimeout(STARTUP_TIMEOUT)
.withMinimumRunningDuration(Duration.ofSeconds(5));
.withMinimumRunningDuration(Duration.ofMinutes(5));
public static ElasticsearchClient create() {
var transport = new RestClientTransport(buildRestClient(), new JacksonJsonpMapper());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment