Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Abingcbc committed Oct 31, 2024
1 parent ec5f503 commit be0e2f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/engine/trigger/ebpf_trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TrigerProcessSecurityEvents(ctx context.Context, commandCnt int) (context.C
func execveCommands(ctx context.Context, commandCnt int) error {
execveCommand := "ps -ef | grep loongcollector-e2e-test"
for i := 0; i < commandCnt; i++ {
if err := setup.Env.ExecOnSource(ctx, execveCommand); err != nil {
if _, err := setup.Env.ExecOnSource(ctx, execveCommand); err != nil {
return err
}
}
Expand All @@ -62,7 +62,7 @@ func TrigerNetworksSecurityEvents(ctx context.Context, commandCnt int, url strin
func curlURL(ctx context.Context, commandCnt int, url string) error {
curlCommand := "curl --connect-timeout 1 " + url + ";"
for i := 0; i < commandCnt; i++ {
if err := setup.Env.ExecOnSource(ctx, curlCommand); err != nil {
if _, err := setup.Env.ExecOnSource(ctx, curlCommand); err != nil {
return err
}
}
Expand Down

0 comments on commit be0e2f1

Please sign in to comment.