From 970eda636c521e38bc4bdde654014ba249c0775a 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 0db735a0b4d2dd..1123618eb4828b 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 @@ -30,8 +30,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; @@ -67,6 +69,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 @@ -1380,4 +1383,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(); +// } }