Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
KayzzzZ committed Nov 5, 2024
1 parent 878f84a commit f76ff64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/engine/trigger/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,18 @@ package trigger
import (
"context"
"fmt"
"time"

"github.com/alibaba/ilogtail/pkg/logger"
"github.com/alibaba/ilogtail/test/engine/setup"
"time"
)

func TrigerHTTP(ctx context.Context, count int, interval int, url string) (context.Context, error) {
logger.Debugf(context.Background(), "count:%d interval:%d url:%s", count, interval, url)
cmd := fmt.Sprintf("curl -vL %s", url)
time.Sleep(time.Second * 5)
for i := 0; i < count; i++ {
err := setup.Env.ExecOnSource(ctx, cmd)
_, err := setup.Env.ExecOnSource(ctx, cmd)
if err != nil {
return ctx, err
}
Expand Down

0 comments on commit f76ff64

Please sign in to comment.