Skip to content

Commit a2a8af0

Browse files
committed
Disable a few tests for gRPC
1 parent 3043a73 commit a2a8af0

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

clickhouse-client/src/test/java/com/clickhouse/client/ClientIntegrationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,8 +1528,8 @@ public void testDump() throws ExecutionException, InterruptedException, IOExcept
15281528
public void testDumpFile(boolean gzipCompressed, boolean useOneLiner)
15291529
throws ExecutionException, InterruptedException, IOException {
15301530
ClickHouseNode server = getServer();
1531-
if (server.getProtocol() != ClickHouseProtocol.GRPC && server.getProtocol() != ClickHouseProtocol.HTTP) {
1532-
throw new SkipException("Skip as only http and grpc implementation work well");
1531+
if (server.getProtocol() != ClickHouseProtocol.HTTP) {
1532+
throw new SkipException("Skip as only http implementation works well");
15331533
}
15341534

15351535
File file = Files.createTempFile("chc", ".data").toFile();

clickhouse-grpc-client/src/test/java/com/clickhouse/client/grpc/ClickHouseGrpcClientTest.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ protected Class<? extends ClickHouseClient> getClientClass() {
8888

8989
@Test(groups = { "integration" })
9090
public void testNothing() throws Exception {
91-
testDumpFile(true, true);
9291
}
9392

9493
@Test(groups = "integration")
@@ -132,6 +131,17 @@ public void testLZ4FrameStream() throws IOException {
132131

133132
}
134133

134+
@Test(dataProvider = "mixedCompressionMatrix", groups = "integration")
135+
@Override
136+
public void testDecompressResponse(ClickHouseCompression reqComp, ClickHouseCompression respComp) throws Exception {
137+
if (!checkServerVersion(getClient(), getServer(), "[22.8,)")) {
138+
throw new SkipException(
139+
"Skip due to unexpected end of input error on 22.3 when using brotli for decompression");
140+
}
141+
142+
super.testDecompressResponse(reqComp, respComp);
143+
}
144+
135145
@Test(groups = { "integration" })
136146
@Override
137147
public void testSessionLock() {

0 commit comments

Comments
 (0)