Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Takuka0311 committed Oct 30, 2024
1 parent ebd9195 commit 546b762
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 @@ -53,13 +53,13 @@ input_network_security
*/
func TrigerNetworksSecurityEvents(ctx context.Context, commandCnt int, url string) (context.Context, error) {
time.Sleep(5 * time.Second)
if err := curlUrl(ctx, commandCnt, url); err != nil {
if err := curlURL(ctx, commandCnt, url); err != nil {
return ctx, err
}
return ctx, nil
}

func curlUrl(ctx context.Context, commandCnt int, url string) error {
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 {
Expand Down

0 comments on commit 546b762

Please sign in to comment.