Skip to content

Commit

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

0 comments on commit 970eda6

Please sign in to comment.