Skip to content

Commit

Permalink
RepeatedTest
Browse files Browse the repository at this point in the history
  • Loading branch information
ssheikin committed Nov 21, 2024
1 parent becd0f1 commit 0ba10da
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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();
// }
}

0 comments on commit 0ba10da

Please sign in to comment.