diff --git a/pkg/network/tracer/testutil/grpc/server_builder.go b/pkg/network/tracer/testutil/grpc/server_builder.go index a24d6c3d6fd11..142596a104358 100644 --- a/pkg/network/tracer/testutil/grpc/server_builder.go +++ b/pkg/network/tracer/testutil/grpc/server_builder.go @@ -21,10 +21,9 @@ import ( // Returns the command executed and a callback to start sending requests. func NewGRPCTLSServer(t *testing.T) (*exec.Cmd, context.CancelFunc) { serverBin := buildGRPCServerBin(t) - serverCmd := fmt.Sprintf("%s", serverBin) cancelCtx, cancel := context.WithCancel(context.Background()) - c, _, err := nettestutil.StartCommandCtx(cancelCtx, serverCmd) + c, _, err := nettestutil.StartCommandCtx(cancelCtx, serverBin) require.NoError(t, err) return c, cancel