Skip to content

Commit ce2657d

Browse files
committed
fixed tests
1 parent 0e59b6e commit ce2657d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

client-v2/src/test/java/com/clickhouse/client/ProxyTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ public void testProxyWithCookies() {
135135
return; // to specific setup for cloud, may be later
136136
}
137137

138-
client.set(clientBuilder(initProxy(), true).build());
138+
client.set(clientBuilder(initProxy(), true)
139+
.setHttpCookiesEnabled(true)
140+
.build());
139141
final int targetPort = getServer(ClickHouseProtocol.HTTP).getPort();
140142

141143
proxy.get().addStubMapping(post(urlMatching("/.*"))

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,9 +1071,11 @@ public void testJSONWritingAsString() throws SQLException {
10711071
return; // JSON was introduced in 24.10
10721072
}
10731073

1074+
Properties createProperties = new Properties();
1075+
createProperties.put(ClientConfigProperties.serverSetting("allow_experimental_json_type"), "1");
10741076
runQuery("CREATE TABLE test_json (order Int8, "
10751077
+ "json JSON"
1076-
+ ") ENGINE = MergeTree ORDER BY ()");
1078+
+ ") ENGINE = MergeTree ORDER BY ()", createProperties);
10771079

10781080
// Insert random (valid) values
10791081
long seed = System.currentTimeMillis();

0 commit comments

Comments
 (0)