Skip to content

Commit 34d0680

Browse files
committed
fix tests
1 parent 327f998 commit 34d0680

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/at/allaboutapps/integresql/IntegresqlJavaClientIntegrationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static void setupClient() {
100100
String baseUrl = String.format("http://%s:%d/api", host, mappedPortIntegreSQL);
101101

102102
IntegresqlClientConfig config = IntegresqlClientConfig.customConfig(baseUrl, "v1", false, Optional.empty(),
103-
Optional.of(postgresContainer.getHost()));
103+
Optional.empty());
104104
client = new IntegresqlJavaClient(config);
105105
log.info("PostgreSQL Test Container running at jdbc:postgresql://{}:{}/{} (internal alias: {})",
106106
postgresContainer.getHost(), postgresContainer.getMappedPort(PostgreSQLContainer.POSTGRESQL_PORT),
@@ -235,7 +235,7 @@ void testGetTestDatabase() throws SQLException {
235235
// config1.host = postgresContainer.getHost(); // Use the host of the PostgreSQL
236236
// container
237237

238-
// config1.host = "localhost";
238+
config1.host = "localhost";
239239
String url1 = config1.connectionString(); // Base URL
240240
log.info("Connecting to DB1: {}", url1);
241241
try (Connection conn1 = DriverManager.getConnection(url1, config1.username, config1.password)) {

0 commit comments

Comments
 (0)