We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a011e6 commit 8b9325aCopy full SHA for 8b9325a
client-v2/src/test/java/com/clickhouse/client/query/QueryTests.java
@@ -608,7 +608,7 @@ public void testQueryExceptionHandling() throws Exception {
608
client.queryRecords("SELECT * FROM unknown_table").get(3, TimeUnit.SECONDS);
609
Assert.fail("exception is expected");
610
} catch (ServerException e) {
611
- Assert.assertTrue(e.getMessage().contains("does not exist"), e.getMessage());
+ Assert.assertEquals(e.getCode(), 60);
612
} catch (ExecutionException e) {
613
Assert.assertTrue(e.getCause() instanceof ServerException);
614
} catch (ClientException e) {
0 commit comments