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

OZG-7346: Try something else

parent 55d78018
No related merge requests found
......@@ -47,11 +47,11 @@ public class ElasticsearchTestClient {
private static final Duration STARTUP_TIMEOUT = Duration.of(2, ChronoUnit.MINUTES);
public static final ElasticsearchContainer ELASTICSEARCH_CONTAINER = new ElasticsearchContainer(IMAGE_NAME)
//.withAccessToHost(true)
.withAccessToHost(true)
.withExposedPorts(PORT)
.withPassword(PASSWORD)
.withStartupTimeout(STARTUP_TIMEOUT)
.withMinimumRunningDuration(Duration.ofMinutes(2));
.withStartupTimeout(STARTUP_TIMEOUT);
// .withMinimumRunningDuration(Duration.ofMinutes(2));
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