File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
client-v2/src/test/java/com/clickhouse/client Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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" );
You can’t perform that action at this time.
0 commit comments