Skip to content

Commit

Permalink
Don't change gotls attacher
Browse files Browse the repository at this point in the history
  • Loading branch information
gjulianm committed Sep 25, 2024
1 parent 081233a commit 4afb84b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/network/usm/monitor_tls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ func TestOldConnectionRegression(t *testing.T) {
usmMonitor := setupUSMTLSMonitor(t, cfg)

// Ensure this test program is being traced
utils.WaitForProgramsToBeTraced(t, UsmGoTLSAttacherName, os.Getpid(), utils.ManualTracingFallbackEnabled)
utils.WaitForProgramsToBeTraced(t, "go-tls", 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
Expand Down Expand Up @@ -721,7 +721,7 @@ func TestLimitListenerRegression(t *testing.T) {
usmMonitor := setupUSMTLSMonitor(t, cfg)

// Ensure this test program is being traced
utils.WaitForProgramsToBeTraced(t, UsmGoTLSAttacherName, os.Getpid(), utils.ManualTracingFallbackEnabled)
utils.WaitForProgramsToBeTraced(t, "go-tls", os.Getpid(), utils.ManualTracingFallbackEnabled)

// Issue multiple HTTP requests
for i := 0; i < 10; i++ {
Expand Down Expand Up @@ -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, UsmGoTLSAttacherName, command.Process.Pid, utils.ManualTracingFallbackEnabled)
utils.WaitForProgramsToBeTraced(t, "go-tls", command.Process.Pid, utils.ManualTracingFallbackEnabled)
runRequests()
checkRequests(t, usmMonitor, expectedOccurrences, reqs, isHTTP2)
}
Expand Down Expand Up @@ -818,7 +818,7 @@ func testHTTPGoTLSCaptureAlreadyRunning(t *testing.T, cfg *config.Config, isHTTP
reqs[req] = false
}

utils.WaitForProgramsToBeTraced(t, UsmGoTLSAttacherName, command.Process.Pid, utils.ManualTracingFallbackEnabled)
utils.WaitForProgramsToBeTraced(t, "go-tls", command.Process.Pid, utils.ManualTracingFallbackEnabled)
issueRequestsFn()
checkRequests(t, usmMonitor, expectedOccurrences, reqs, isHTTP2)
}
Expand Down

0 comments on commit 4afb84b

Please sign in to comment.