You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by al...@apache.org on 2022/08/30 07:08:22 UTC

[camel-quarkus] branch main updated: pg-replication-slot: fix usage of deprecated method

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

aldettinger 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 42ad768f9f pg-replication-slot: fix usage of deprecated method
42ad768f9f is described below

commit 42ad768f9f814406a1d6fad7dc0211d620f5b7a1
Author: aldettinger <al...@gmail.com>
AuthorDate: Mon Aug 29 15:41:55 2022 +0200

    pg-replication-slot: fix usage of deprecated method
---
 .../component/pg/replication/slot/it/PgReplicationSlotTestResource.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/integration-tests/pg-replication-slot/src/test/java/org/apache/camel/quarkus/component/pg/replication/slot/it/PgReplicationSlotTestResource.java b/integration-tests/pg-replication-slot/src/test/java/org/apache/camel/quarkus/component/pg/replication/slot/it/PgReplicationSlotTestResource.java
index 902b28b7a1..c7b696cba0 100644
--- a/integration-tests/pg-replication-slot/src/test/java/org/apache/camel/quarkus/component/pg/replication/slot/it/PgReplicationSlotTestResource.java
+++ b/integration-tests/pg-replication-slot/src/test/java/org/apache/camel/quarkus/component/pg/replication/slot/it/PgReplicationSlotTestResource.java
@@ -55,7 +55,7 @@ public class PgReplicationSlotTestResource implements QuarkusTestResourceLifecyc
         pgContainer.start();
 
         // Print Postgres server connectivity information
-        String pgAuthority = pgContainer.getContainerIpAddress() + ":" + pgContainer.getMappedPort(POSTGRES_PORT);
+        String pgAuthority = pgContainer.getHost() + ":" + pgContainer.getMappedPort(POSTGRES_PORT);
         LOG.debug("Postgres database available at " + pgAuthority);
 
         return mapOf(PG_AUTHORITY_CFG_KEY, pgAuthority, PG_DBNAME_CFG_KEY, POSTGRES_DB_NAME, PG_USER_CFG_KEY, POSTGRES_USER,