Skip to content

Commit 2a160fe

Browse files
committed
fix test failure and update changelog
1 parent 3e817a6 commit 2a160fe

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.4.3
2+
### Bug Fixes
3+
* r2dbc driver does not support most client options. [#1299](https://github.com/ClickHouse/clickhouse-java/issues/1299)
4+
* incorrect content from Lz4InputStream when using text-based data format [#48446](https://github.com/ClickHouse/ClickHouse/issues/48446)
5+
16
## 0.4.2, 2023-03-21
27
### Breaking Changes
38
* ClickHouseSqlStatement and *ParserHandler in JDBC driver were refactored to support `compression` and `infile` in insert statement.

clickhouse-r2dbc/src/test/java/com/clickhouse/r2dbc/BaseR2dbcTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.clickhouse.r2dbc;
22

3+
import org.junit.AfterClass;
4+
import org.junit.BeforeClass;
35
import org.junit.jupiter.api.AfterAll;
46
import org.junit.jupiter.api.BeforeAll;
57

@@ -18,11 +20,13 @@ public abstract class BaseR2dbcTest extends BaseIntegrationTest {
1820
&& !"HTTP".equals(CUSTOM_PROTOCOL_NAME) ? "http_connection_provider=" + CUSTOM_PROTOCOL_NAME : "";
1921

2022
@BeforeAll
23+
@BeforeClass
2124
public static void beforeSuite() throws Exception {
2225
ClickHouseServerForTest.beforeSuite();
2326
}
2427

2528
@AfterAll
29+
@AfterClass
2630
public static void afterSuite() throws Exception {
2731
ClickHouseServerForTest.afterSuite();
2832
}

clickhouse-r2dbc/src/test/java/com/clickhouse/r2dbc/connection/ClickHouseConnectionTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ protected void executeQuery(String sql, String expectedStringResults, String cus
2424
.then()
2525
.block();
2626

27-
Assert.assertEquals(builder.toString(), expectedStringResults);
27+
Assert.assertNull("Should not run into error", error.get());
28+
Assert.assertEquals(expectedStringResults, builder.toString());
2829
}
2930

3031
@Test

0 commit comments

Comments
 (0)