Skip to content

Commit 2dacd29

Browse files
committed
Merge remote-tracking branch 'origin/jdbc_testing_dbeaver' into jdbc_testing_dbeaver
2 parents b7ad048 + f9386dd commit 2dacd29

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

jdbc-v2/src/test/java/com/clickhouse/jdbc/DataSourceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
import com.clickhouse.client.ClickHouseServerForTest;
1313
import org.testng.annotations.AfterTest;
14-
import org.testng.annotations.BeforeTest;
14+
import org.testng.annotations.BeforeClass;
1515
import org.testng.annotations.Test;
1616

1717

jdbc-v2/src/test/java/com/clickhouse/jdbc/DataTypeTests.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ public static void setUp() throws SQLException {
3333
}
3434

3535
private Connection getConnection() throws SQLException {
36-
return DriverManager.getConnection(getEndpointString(isCloud()));
36+
try {
37+
return DriverManager.getConnection(getEndpointString(isCloud()));
38+
} catch (SQLException e) {
39+
Driver.load();
40+
return DriverManager.getConnection(getEndpointString(isCloud()));
41+
}
3742
}
3843

3944
private int insertData(String sql) throws SQLException {

jdbc-v2/src/test/java/com/clickhouse/jdbc/metadata/DatabaseMetaDataTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,17 +183,17 @@ public void testGetServerVersions() throws Exception {
183183
}
184184
}
185185

186-
@Test(groups = { "integration" })
186+
@Test(groups = { "integration" }, enabled = false)
187187
public void testGetTypeInfo() throws Exception {
188188
Assert.fail("Not implemented");
189189
}
190190

191-
@Test(groups = { "integration" })
191+
@Test(groups = { "integration" }, enabled = false)
192192
public void testGetProcedures() throws Exception {
193193
Assert.fail("Not implemented");
194194
}
195195

196-
@Test(groups = { "integration" })
196+
@Test(groups = { "integration" }, enabled = false)
197197
public void testGetClientInfoProperties() throws Exception {
198198
try (Connection conn = getJdbcConnection()) {
199199
DatabaseMetaData dbmd = conn.getMetaData();

0 commit comments

Comments
 (0)