Skip to content

Commit c170d3d

Browse files
committed
Fixed setup test for cloud. Sorry.
1 parent 74d2073 commit c170d3d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ public class ReadonlyProfileTest extends JdbcIntegrationTest {
2121

2222
@BeforeClass(groups = { "integration" })
2323
public void setup() throws SQLException {
24+
if (isCloud()) {
25+
return;
26+
}
2427
// Append fixed character classes so the random password satisfies server
2528
// password-complexity policies (uppercase, lowercase, digit, special).
2629
password = UUID.randomUUID().toString() + "Aa1!";
@@ -41,6 +44,9 @@ public void setup() throws SQLException {
4144

4245
@AfterClass(groups = { "integration" })
4346
public void teardown() throws SQLException {
47+
if (isCloud()) {
48+
return;
49+
}
4450
try (Connection conn = getJdbcConnection();
4551
Statement stmt = conn.createStatement()) {
4652
stmt.execute("DROP USER IF EXISTS jdbc_test_user_readonly_1");

0 commit comments

Comments
 (0)