From f51cae710324b97920034b5f62e056da3e2c92d8 Mon Sep 17 00:00:00 2001 From: Maycon Santos Date: Thu, 13 Jun 2024 11:38:38 +0200 Subject: [PATCH] Prevent building test code for client (#2125) This will reduce the client binary size in almost 25% --- client/cmd/{testutil.go => testutil_test.go} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename client/cmd/{testutil.go => testutil_test.go} (97%) diff --git a/client/cmd/testutil.go b/client/cmd/testutil_test.go similarity index 97% rename from client/cmd/testutil.go rename to client/cmd/testutil_test.go index 1fc36b373..430a7da44 100644 --- a/client/cmd/testutil.go +++ b/client/cmd/testutil_test.go @@ -108,7 +108,7 @@ func startManagement(t *testing.T, config *mgmt.Config) (*grpc.Server, net.Liste } func startClientDaemon( - t *testing.T, ctx context.Context, managementURL, configPath string, + t *testing.T, ctx context.Context, _, configPath string, ) (*grpc.Server, net.Listener) { t.Helper() lis, err := net.Listen("tcp", "127.0.0.1:0")