diff --git a/src/test/java/de/numcodex/feasibility_gui_backend/terminology/es/CodeableConceptServiceIT.java b/src/test/java/de/numcodex/feasibility_gui_backend/terminology/es/CodeableConceptServiceIT.java index 2347a51..45cdd6b 100644 --- a/src/test/java/de/numcodex/feasibility_gui_backend/terminology/es/CodeableConceptServiceIT.java +++ b/src/test/java/de/numcodex/feasibility_gui_backend/terminology/es/CodeableConceptServiceIT.java @@ -55,7 +55,7 @@ public class CodeableConceptServiceIT { .waitingFor(Wait.forHttp("/health").forStatusCodeMatching(c -> c >= 200 && c <= 500)); @BeforeAll - static void setUp() { + static void setUp() throws InterruptedException { ELASTICSEARCH_CONTAINER.start(); WebClient webClient = WebClient.builder().baseUrl("http://" + ELASTICSEARCH_CONTAINER.getHttpHostAddress()).build(); webClient.put() @@ -71,6 +71,7 @@ static void setUp() { .retrieve() .toBodilessEntity() .block(); + Thread.sleep(5000); } @AfterAll