From 9d22d6faf245a20802ce9587d5a7e293d8ddcbe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20Julia=CC=81n?= Date: Fri, 13 Sep 2024 11:59:59 +0200 Subject: [PATCH] Fix go-tls attacher name --- pkg/network/usm/monitor_tls_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/network/usm/monitor_tls_test.go b/pkg/network/usm/monitor_tls_test.go index c706b5fe874d4..7addc374fae3a 100644 --- a/pkg/network/usm/monitor_tls_test.go +++ b/pkg/network/usm/monitor_tls_test.go @@ -650,7 +650,7 @@ func TestOldConnectionRegression(t *testing.T) { usmMonitor := setupUSMTLSMonitor(t, cfg) // Ensure this test program is being traced - utils.WaitForProgramsToBeTraced(t, "go-tls", os.Getpid(), utils.ManualTracingFallbackEnabled) + utils.WaitForProgramsToBeTraced(t, UsmGoTLSAttacherName, os.Getpid(), utils.ManualTracingFallbackEnabled) // The HTTPServer used here effectively works as an "echo" servers and // returns back in the response whatever it received in the request @@ -721,7 +721,7 @@ func TestLimitListenerRegression(t *testing.T) { usmMonitor := setupUSMTLSMonitor(t, cfg) // Ensure this test program is being traced - utils.WaitForProgramsToBeTraced(t, "go-tls", os.Getpid(), utils.ManualTracingFallbackEnabled) + utils.WaitForProgramsToBeTraced(t, UsmGoTLSAttacherName, os.Getpid(), utils.ManualTracingFallbackEnabled) // Issue multiple HTTP requests for i := 0; i < 10; i++ { @@ -781,7 +781,7 @@ func testHTTPGoTLSCaptureNewProcess(t *testing.T, cfg *config.Config, isHTTP2 bo // spin-up goTLS client and issue requests after initialization command, runRequests := gotlstestutil.NewGoTLSClient(t, serverAddr, expectedOccurrences, isHTTP2) - utils.WaitForProgramsToBeTraced(t, "go-tls", command.Process.Pid, utils.ManualTracingFallbackEnabled) + utils.WaitForProgramsToBeTraced(t, UsmGoTLSAttacherName, command.Process.Pid, utils.ManualTracingFallbackEnabled) runRequests() checkRequests(t, usmMonitor, expectedOccurrences, reqs, isHTTP2) } @@ -818,7 +818,7 @@ func testHTTPGoTLSCaptureAlreadyRunning(t *testing.T, cfg *config.Config, isHTTP reqs[req] = false } - utils.WaitForProgramsToBeTraced(t, "go-tls", command.Process.Pid, utils.ManualTracingFallbackEnabled) + utils.WaitForProgramsToBeTraced(t, UsmGoTLSAttacherName, command.Process.Pid, utils.ManualTracingFallbackEnabled) issueRequestsFn() checkRequests(t, usmMonitor, expectedOccurrences, reqs, isHTTP2) }