Skip to content

Commit e704082

Browse files
committed
Skip async_insert test before 21.12
1 parent 734a286 commit e704082

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

clickhouse-jdbc/src/test/java/com/clickhouse/jdbc/ClickHouseStatementTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ public void testMutation() throws SQLException {
123123
@Test(groups = "integration")
124124
public void testAsyncInsert() throws SQLException {
125125
Properties props = new Properties();
126+
try (ClickHouseConnection conn = newConnection(props)) {
127+
if (conn.getServerVersion().check("(,21.12)")) {
128+
return;
129+
}
130+
}
131+
126132
props.setProperty(ClickHouseHttpOption.CUSTOM_PARAMS.getKey(), "async_insert=1,wait_for_async_insert=1");
127133
try (ClickHouseConnection conn = newConnection(props);
128134
ClickHouseStatement stmt = conn.createStatement();) {

0 commit comments

Comments
 (0)