Skip to content

Commit

Permalink
Update ClickHouseConfigTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Paultagoras committed Jul 19, 2024
1 parent 186efac commit 7751f51
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void testCustomValues() {
@Test(groups = { "unit" })
public void testClientInfo() throws UnknownHostException {
ClickHouseConfig config = new ClickHouseConfig();
Assert.assertEquals(config.getProductVersion(), "unknown");
Assert.assertEquals(config.getProductVersion(), ClickHouseClientOption.LATEST_KNOWN_VERSION);
Assert.assertEquals(config.getProductRevision(), "unknown");
Assert.assertEquals(config.getClientOsInfo(),
System.getProperty("os.name") + "/" + System.getProperty("os.version"));
Expand All @@ -85,11 +85,10 @@ public void testClientInfo() throws UnknownHostException {
Assert.assertEquals(config.getClientHost(), InetAddress.getLocalHost().getHostName());

Assert.assertEquals(ClickHouseClientOption.buildUserAgent(null, null),
"ClickHouse-JavaClient/unknown (" + System.getProperty("os.name") + "/"
+ System.getProperty("os.version") + "; " + System.getProperty("java.vm.name") + "/"
"ClickHouse-JavaClient/"+ ClickHouseClientOption.PRODUCT_VERSION + " (" + System.getProperty("java.vm.name") + "/"
+ System.getProperty("java.vendor.version",
System.getProperty("java.vm.version", System.getProperty("java.version", "unknown")))
+ "; rv:unknown)");
+ ")");
Assert.assertEquals(ClickHouseClientOption.buildUserAgent(null, null),
ClickHouseClientOption.buildUserAgent("", null));

Expand Down

0 comments on commit 7751f51

Please sign in to comment.