diff --git a/boot-opensearch-sample/pom.xml b/boot-opensearch-sample/pom.xml
index 5c4e353c5..39b339fb1 100644
--- a/boot-opensearch-sample/pom.xml
+++ b/boot-opensearch-sample/pom.xml
@@ -26,9 +26,9 @@
${project.build.directory}/test-results
2.39.0
- 8.3.1
+ 8.4.0
1.2.0
- 3.9.1.2184
+ 3.10.0.2594
0.8.10
0.80
${project.build.directory}/jacoco/test
diff --git a/boot-opensearch-sample/src/test/java/com/example/opensearch/common/ContainersConfig.java b/boot-opensearch-sample/src/test/java/com/example/opensearch/common/ContainersConfig.java
index 8fbe817d6..b0ac7baab 100644
--- a/boot-opensearch-sample/src/test/java/com/example/opensearch/common/ContainersConfig.java
+++ b/boot-opensearch-sample/src/test/java/com/example/opensearch/common/ContainersConfig.java
@@ -1,5 +1,6 @@
package com.example.opensearch.common;
+import java.util.concurrent.TimeUnit;
import org.springframework.boot.test.context.TestConfiguration;
import org.springframework.test.context.DynamicPropertyRegistry;
import org.springframework.test.context.DynamicPropertySource;
@@ -17,6 +18,12 @@ public class ContainersConfig {
static {
openSearchContainer.start();
+ try {
+ // waiting for container to start
+ TimeUnit.SECONDS.sleep(30);
+ } catch (Exception e) {
+ // TODO: handle exception
+ }
}
@DynamicPropertySource