Skip to content

Commit 27d034f

Browse files
committed
Enable #770 unit tests in CI
1 parent e704082 commit 27d034f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

clickhouse-jdbc/src/test/java/ru/yandex/clickhouse/response/ClickHouseResultSetTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public void withTotals() throws Exception {
167167
assertEquals(70511139L, rs.getLong(2));
168168
}
169169

170-
@Test
170+
@Test(groups = "unit")
171171
public void withTotalsAndEmptyStrings() throws Exception {
172172
String response = "SiteName\tCountry\n" +
173173
"String\tString\n" +
@@ -203,7 +203,7 @@ public void withTotalsAndEmptyStrings() throws Exception {
203203

204204
rs.getTotals();
205205
assertEquals("", rs.getString(1));
206-
assertEquals(70511139L, rs.getLong(2));
206+
assertEquals(0L, rs.getLong(2));
207207
}
208208

209209
@Test(groups = "unit")
@@ -267,7 +267,7 @@ public void withTotalsSingleIntColumn() throws Exception {
267267
assertEquals(0L, rs.getLong(1));
268268
}
269269

270-
@Test
270+
@Test(groups = "unit")
271271
public void withTotalsSingleFloatColumn() throws Exception {
272272
String response =
273273
"Code\n"

clickhouse-jdbc/src/test/java/ru/yandex/clickhouse/response/parser/ClickHouseValueParserTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public void testParseBoolean() throws SQLException {
195195
assertFalse(ClickHouseValueParser.parseBoolean(ByteFragment.fromString(" true"), columnInfo));
196196
}
197197

198-
@Test (dataProvider = "float_test_data")
198+
@Test (dataProvider = "float_test_data", groups = "unit")
199199
public void testParseFloat(String byteFragmentString, Float expectedValue) throws SQLException {
200200
ClickHouseColumnInfo columnInfo = ClickHouseColumnInfo.parse("Float32", "columnName", null);
201201
float floatDelta = 0.001f;
@@ -210,7 +210,7 @@ public void testParseFloat(String byteFragmentString, Float expectedValue) throw
210210
}
211211
}
212212

213-
@Test (dataProvider = "double_test_data")
213+
@Test (dataProvider = "double_test_data", groups = "unit")
214214
public void testParseDouble(String byteFragmentString, Double expectedValue) throws SQLException {
215215
ClickHouseColumnInfo columnInfo = ClickHouseColumnInfo.parse("Float64", "columnName", null);
216216
double doubleDelta = 0.001;
@@ -241,7 +241,7 @@ public void testGetParserFloat(String byteFragmentString, Float expectedValue) t
241241
}
242242
}
243243

244-
@Test (dataProvider = "double_test_data")
244+
@Test (dataProvider = "double_test_data", groups = "unit")
245245
public void testGetParserDouble(String byteFragmentString, Double expectedValue) throws SQLException {
246246
ClickHouseColumnInfo columnInfo = ClickHouseColumnInfo.parse("Float64", "columnName", null);
247247
double doubleDelta = 0.001d;

0 commit comments

Comments
 (0)