Skip to content

Commit d011459

Browse files
committed
fixed test
1 parent bccd1d9 commit d011459

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ public static Object[][] secureClientProvider() throws Exception {
103103

104104
@Test(groups = {"integration"})
105105
public void testRawSettings() {
106+
final String customPrefix = isCloud() ? "SQL_" : "custom_";
106107
Client client = newClient()
107-
.setOption("custom_setting_1", "value_1")
108-
.setOption(ClientConfigProperties.CUSTOM_SETTINGS_PREFIX.getKey(), isCloud()? "SQL_" :
109-
ClientConfigProperties.CUSTOM_SETTINGS_PREFIX.getDefaultValue())
108+
.setOption(customPrefix + "setting_1", "value_1")
109+
.setOption(ClientConfigProperties.CUSTOM_SETTINGS_PREFIX.getKey(), customPrefix)
110110
.build();
111111

112112
client.execute("SELECT 1");

0 commit comments

Comments
 (0)