Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[client-v2] Compression Support #1761

Merged
merged 7 commits into from
Aug 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'main' into feat_compression_support
  • Loading branch information
chernser committed Aug 6, 2024
commit f4f4552561f52f044dcec83c44308ede1d28bc76
22 changes: 22 additions & 0 deletions client-v2/src/test/java/com/clickhouse/client/ClientTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,26 @@ public void testRawSettings() {
client.close();
}
}

@Test
public void testPing() {
ClickHouseNode node = getServer(ClickHouseProtocol.HTTP);
try (Client client = new Client.Builder()
.addEndpoint(node.toUri().toString())
.setUsername("default")
.setPassword("")
.useNewImplementation(System.getProperty("client.tests.useNewImplementation", "false").equals("true"))
.build()) {
Assert.assertTrue(client.ping());
}

try (Client client = new Client.Builder()
.addEndpoint("http://localhost:12345")
.setUsername("default")
.setPassword("")
.useNewImplementation(System.getProperty("client.tests.useNewImplementation", "false").equals("true"))
.build()) {
Assert.assertFalse(client.ping(TimeUnit.SECONDS.toMillis(20)));
}
}
}
You are viewing a condensed version of this merge commit. You can view the full changes here.