From df1a0d7e5ef5be5687360c4f76c35cf6c6c8f433 Mon Sep 17 00:00:00 2001 From: Craig MacKenzie Date: Mon, 17 Jun 2024 08:02:25 -0400 Subject: [PATCH] Fix use of wrong control protocol client field. (#39885) Co-authored-by: Julien Lind --- .../tests/scripts/serviceable-1.0-darwin-x86_64/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/elastic-agent/pkg/agent/operation/tests/scripts/serviceable-1.0-darwin-x86_64/main.go b/x-pack/elastic-agent/pkg/agent/operation/tests/scripts/serviceable-1.0-darwin-x86_64/main.go index eadeb8ec759b..da9123f45874 100644 --- a/x-pack/elastic-agent/pkg/agent/operation/tests/scripts/serviceable-1.0-darwin-x86_64/main.go +++ b/x-pack/elastic-agent/pkg/agent/operation/tests/scripts/serviceable-1.0-darwin-x86_64/main.go @@ -102,7 +102,7 @@ type TestConfig struct { TestFile string `config:"TestFile" yaml:"TestFile"` } -func getCreds(port int) (*proto.StartUpInfo, error) { +func getCreds(port int) (*proto.ConnInfo, error) { c, err := net.Dial("tcp", fmt.Sprintf("127.0.0.1:%d", port)) if err != nil { return nil, err @@ -113,7 +113,7 @@ func getCreds(port int) (*proto.StartUpInfo, error) { if err != nil { return nil, err } - var connInfo proto.StartUpInfo + var connInfo proto.ConnInfo err = protobuf.Unmarshal(buf[:n], &connInfo) if err != nil { return nil, err