This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/main by this push:
     new 213cd9b26c Use container host instead of localhost for ElasticSearch 
tests
213cd9b26c is described below

commit 213cd9b26c3b5908b6020309aa3e627d31fcb88d
Author: James Netherton <jamesnether...@gmail.com>
AuthorDate: Fri Jul 5 10:58:29 2024 +0100

    Use container host instead of localhost for ElasticSearch tests
---
 .../quarkus/component/elasticsearch/it/ElasticsearchTestResource.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/integration-tests-jvm/elasticsearch/src/test/java/org/apache/camel/quarkus/component/elasticsearch/it/ElasticsearchTestResource.java
 
b/integration-tests-jvm/elasticsearch/src/test/java/org/apache/camel/quarkus/component/elasticsearch/it/ElasticsearchTestResource.java
index b449938b1a..7d89e13d72 100644
--- 
a/integration-tests-jvm/elasticsearch/src/test/java/org/apache/camel/quarkus/component/elasticsearch/it/ElasticsearchTestResource.java
+++ 
b/integration-tests-jvm/elasticsearch/src/test/java/org/apache/camel/quarkus/component/elasticsearch/it/ElasticsearchTestResource.java
@@ -56,7 +56,7 @@ public class ElasticsearchTestResource implements 
QuarkusTestResourceLifecycleMa
 
             container.start();
 
-            String hostAddresses = String.format("localhost:%s", 
container.getMappedPort(ELASTICSEARCH_PORT));
+            String hostAddresses = String.format("%s:%d", container.getHost(), 
container.getMappedPort(ELASTICSEARCH_PORT));
 
             // Component configuration where the ElasticSearch client is 
managed by Camel (E.g autowiring disabled)
             return CollectionHelper.mapOf(

Reply via email to