Skip to content

Commit a5ddde1

Browse files
committed
removed using new java api in tests
1 parent 5933e46 commit a5ddde1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client-v2/src/test/java/com/clickhouse/client/query/QueryTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public void testReadRecordsGetFirstRecord() throws Exception {
135135
@Test(groups = {"integration"})
136136
public void testQueryAll() throws Exception {
137137
prepareDataSet(DATASET_TABLE, DATASET_COLUMNS, DATASET_VALUE_GENERATORS, 10);
138-
GenericRecord hostnameRecord = client.queryAll("SELECT hostname()").stream().findFirst().orElseThrow();
138+
GenericRecord hostnameRecord = client.queryAll("SELECT hostname()").stream().findFirst().get();
139139
Assert.assertNotNull(hostnameRecord);
140140
}
141141

0 commit comments

Comments
 (0)