From 4efc893c9dc19d6f1dd88570a69e03603ea116ab Mon Sep 17 00:00:00 2001 From: Yuya Ebihara Date: Sun, 9 Jun 2024 10:40:31 +0900 Subject: [PATCH] Avoid using deprecated ClickHouseContainer class --- .../io/trino/plugin/clickhouse/TestingClickHouseServer.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugin/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/TestingClickHouseServer.java b/plugin/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/TestingClickHouseServer.java index 93c3ed3c5f70..bdbfd3b61f1f 100644 --- a/plugin/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/TestingClickHouseServer.java +++ b/plugin/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/TestingClickHouseServer.java @@ -14,7 +14,7 @@ package io.trino.plugin.clickhouse; import io.trino.testing.ResourcePresence; -import org.testcontainers.containers.ClickHouseContainer; +import org.testcontainers.clickhouse.ClickHouseContainer; import org.testcontainers.utility.DockerImageName; import java.io.Closeable; @@ -23,7 +23,6 @@ import java.sql.Statement; import static java.lang.String.format; -import static org.testcontainers.containers.ClickHouseContainer.HTTP_PORT; import static org.testcontainers.utility.MountableFile.forClasspathResource; public class TestingClickHouseServer @@ -69,7 +68,7 @@ public void execute(String sql) public String getJdbcUrl() { return format("jdbc:clickhouse://%s:%s/", dockerContainer.getHost(), - dockerContainer.getMappedPort(HTTP_PORT)); + dockerContainer.getMappedPort(8123)); } @Override