@@ -106,7 +106,7 @@ func TestClickHouse(t *testing.T) {
106106 ctx , cancel := context .WithTimeout (context .Background (), time .Minute )
107107 defer cancel ()
108108
109- var args []string
109+ args := []string { "--enable-api" }
110110
111111 pool , err := initClickHouseConnectionPool (ClickHouseHost , ClickHousePort , ClickHouseUser , ClickHousePass , ClickHouseDatabase , ClickHouseProtocol )
112112 if err != nil {
@@ -268,7 +268,7 @@ func TestClickHouseBasicConnection(t *testing.T) {
268268 ctx , cancel := context .WithTimeout (context .Background (), time .Minute )
269269 defer cancel ()
270270
271- var args []string
271+ args := []string { "--enable-api" }
272272
273273 pool , err := initClickHouseConnectionPool (ClickHouseHost , ClickHousePort , ClickHouseUser , ClickHousePass , ClickHouseDatabase , ClickHouseProtocol )
274274 if err != nil {
@@ -418,7 +418,7 @@ func TestClickHouseSQLTool(t *testing.T) {
418418 },
419419 }
420420
421- var args []string
421+ args := []string { "--enable-api" }
422422 cmd , cleanup , err := tests .StartCmd (ctx , toolsFile , args ... )
423423 if err != nil {
424424 t .Fatalf ("command initialization returned an error: %s" , err )
@@ -529,7 +529,7 @@ func TestClickHouseExecuteSQLTool(t *testing.T) {
529529 },
530530 }
531531
532- var args []string
532+ args := []string { "--enable-api" }
533533 cmd , cleanup , err := tests .StartCmd (ctx , toolsFile , args ... )
534534 if err != nil {
535535 t .Fatalf ("command initialization returned an error: %s" , err )
@@ -666,7 +666,7 @@ func TestClickHouseEdgeCases(t *testing.T) {
666666 },
667667 }
668668
669- var args []string
669+ args := []string { "--enable-api" }
670670 cmd , cleanup , err := tests .StartCmd (ctx , toolsFile , args ... )
671671 if err != nil {
672672 t .Fatalf ("command initialization returned an error: %s" , err )
@@ -918,7 +918,7 @@ func TestClickHouseListDatabasesTool(t *testing.T) {
918918 },
919919 }
920920
921- var args []string
921+ args := []string { "--enable-api" }
922922 cmd , cleanup , err := tests .StartCmd (ctx , toolsFile , args ... )
923923 if err != nil {
924924 t .Fatalf ("command initialization returned an error: %s" , err )
@@ -1047,7 +1047,7 @@ func TestClickHouseListTablesTool(t *testing.T) {
10471047 },
10481048 }
10491049
1050- var args []string
1050+ args := []string { "--enable-api" }
10511051 cmd , cleanup , err := tests .StartCmd (ctx , toolsFile , args ... )
10521052 if err != nil {
10531053 t .Fatalf ("command initialization returned an error: %s" , err )
0 commit comments