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

OZG-7346: Try something else

parent 55d78018
Branches
No related tags found
No related merge requests found
...@@ -47,11 +47,11 @@ public class ElasticsearchTestClient { ...@@ -47,11 +47,11 @@ public class ElasticsearchTestClient {
private static final Duration STARTUP_TIMEOUT = Duration.of(2, ChronoUnit.MINUTES); private static final Duration STARTUP_TIMEOUT = Duration.of(2, ChronoUnit.MINUTES);
public static final ElasticsearchContainer ELASTICSEARCH_CONTAINER = new ElasticsearchContainer(IMAGE_NAME) public static final ElasticsearchContainer ELASTICSEARCH_CONTAINER = new ElasticsearchContainer(IMAGE_NAME)
//.withAccessToHost(true) .withAccessToHost(true)
.withExposedPorts(PORT) .withExposedPorts(PORT)
.withPassword(PASSWORD) .withPassword(PASSWORD)
.withStartupTimeout(STARTUP_TIMEOUT) .withStartupTimeout(STARTUP_TIMEOUT);
.withMinimumRunningDuration(Duration.ofMinutes(2)); // .withMinimumRunningDuration(Duration.ofMinutes(2));
public static ElasticsearchClient create() { public static ElasticsearchClient create() {
var transport = new RestClientTransport(buildRestClient(), new JacksonJsonpMapper()); var transport = new RestClientTransport(buildRestClient(), new JacksonJsonpMapper());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment