Prevent building test code for client (#2125)

This will reduce the client binary size in almost 25%
This commit is contained in:
Maycon Santos 2024-06-13 11:38:38 +02:00 committed by GitHub
parent f68d5e965f
commit f51cae7103
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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")