From 0ba10da9fb6cb0f621864ce92356bd57f7eba9a6 Mon Sep 17 00:00:00 2001 From: Sasha Sheikin Date: Tue, 15 Oct 2024 17:58:12 +0200 Subject: [PATCH] RepeatedTest --- .../clickhouse/BaseClickHouseTypeMapping.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/plugin/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/BaseClickHouseTypeMapping.java b/plugin/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/BaseClickHouseTypeMapping.java index ecaaa630e1c8..c1318280f16b 100644 --- a/plugin/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/BaseClickHouseTypeMapping.java +++ b/plugin/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/BaseClickHouseTypeMapping.java @@ -31,8 +31,10 @@ import io.trino.testing.sql.TestTable; import io.trino.testing.sql.TrinoSqlExecutor; import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.RepeatedTest; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInstance; +import org.junit.jupiter.api.parallel.Execution; import java.time.LocalDate; import java.time.LocalDateTime; @@ -68,6 +70,7 @@ import static java.time.ZoneOffset.UTC; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.TestInstance.Lifecycle.PER_CLASS; +import static org.junit.jupiter.api.parallel.ExecutionMode.SAME_THREAD; @TestInstance(PER_CLASS) public abstract class BaseClickHouseTypeMapping @@ -1491,4 +1494,22 @@ protected SqlExecutor onRemoteDatabase() { return clickhouseServer::execute; } + + @RepeatedTest(1) + @Execution(SAME_THREAD) + public void testNoop() + { + // to keep necessary imports + } + +// @RepeatedTest(1000) +// @Execution(SAME_THREAD) +// public void testRepeated() +// { +// testTimestamp(); +// testClickHouseDateTimeMinMaxValues(); +// testUnsupportedTimestamp(); +// testClickHouseDateTimeWithTimeZone(); +// testDateTimePredicatePushdown(); +// } }