From 8af09a479e3216870c71c8dc772a2899e4810499 Mon Sep 17 00:00:00 2001 From: Michael Folz Date: Thu, 12 Dec 2024 12:46:19 +0100 Subject: [PATCH] #334 - Re-enable CodeableConceptServiceIT - remove debug output --- .../terminology/es/CodeableConceptService.java | 6 +----- .../terminology/es/CodeableConceptServiceIT.java | 2 ++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/de/numcodex/feasibility_gui_backend/terminology/es/CodeableConceptService.java b/src/main/java/de/numcodex/feasibility_gui_backend/terminology/es/CodeableConceptService.java index b1612b21..a4d97f63 100644 --- a/src/main/java/de/numcodex/feasibility_gui_backend/terminology/es/CodeableConceptService.java +++ b/src/main/java/de/numcodex/feasibility_gui_backend/terminology/es/CodeableConceptService.java @@ -102,10 +102,6 @@ private SearchHits findByCodeOrDisplay(String keyword, .withPageable(pageRequest) .build(); - log.info(query.getQuery().toString()); - - var result = operations.search(query, CodeableConceptDocument.class); - log.info(result.toString()); - return result; + return operations.search(query, CodeableConceptDocument.class); } } 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 f1ec63c9..27565b93 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 @@ -71,6 +71,8 @@ static void setUp() throws InterruptedException { .retrieve() .toBodilessEntity() .block(); + + // When running in github actions without a slight delay, the data might not be complete in the elastic search container (although a blocking call is used) Thread.sleep(1000); }