You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2021/02/07 06:29:24 UTC

[skywalking-infra-e2e] branch pull/4/head created (now b6b92ad)

This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a change to branch pull/4/head
in repository https://gitbox.apache.org/repos/asf/skywalking-infra-e2e.git.


      at b6b92ad  Fix CI

This branch includes the following new commits:

     new b6b92ad  Fix CI

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[skywalking-infra-e2e] 01/01: Fix CI

Posted by ke...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch pull/4/head
in repository https://gitbox.apache.org/repos/asf/skywalking-infra-e2e.git

commit b6b92addce90432175e3834d9affd4a2d4e863d4
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Sun Feb 7 14:28:44 2021 +0800

    Fix CI
---
 commands/trigger/http.go                  |  5 ++---
 commands/trigger/trigger.go               |  4 ++--
 internal/flags/{trigget.go => trigger.go} | 12 +++++++-----
 3 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/commands/trigger/http.go b/commands/trigger/http.go
index d07655f..f244d63 100644
--- a/commands/trigger/http.go
+++ b/commands/trigger/http.go
@@ -37,13 +37,12 @@ func NewHTTPAction() Action {
 	return &httpAction{
 		interval: flags.Interval,
 		times:    flags.Times,
-		url:      flags.HttpUrl,
-		method:   strings.ToUpper(flags.HttpMethod),
+		url:      flags.URL,
+		method:   strings.ToUpper(flags.Method),
 	}
 }
 
 func (h *httpAction) Do() error {
-
 	t := time.NewTicker(time.Second)
 	c := 1
 	client := &http.Client{}
diff --git a/commands/trigger/trigger.go b/commands/trigger/trigger.go
index 48718bc..521e2fe 100644
--- a/commands/trigger/trigger.go
+++ b/commands/trigger/trigger.go
@@ -31,8 +31,8 @@ func init() {
 	Trigger.Flags().StringVar(&flags.Interval, "interval", "3s", "trigger the action every N seconds")
 	Trigger.Flags().IntVar(&flags.Times, "times", 0, "how many times to trigger the action, 0=infinite")
 	Trigger.Flags().StringVar(&flags.Action, "action", "", "the action of the trigger")
-	Trigger.Flags().StringVar(&flags.HttpUrl, "url", "", "the url of the http action")
-	Trigger.Flags().StringVar(&flags.HttpMethod, "method", "get", "the method of the http action")
+	Trigger.Flags().StringVar(&flags.URL, "url", "", "the url of the http action")
+	Trigger.Flags().StringVar(&flags.Method, "method", "get", "the method of the http action")
 }
 
 var Trigger = &cobra.Command{
diff --git a/internal/flags/trigget.go b/internal/flags/trigger.go
similarity index 90%
rename from internal/flags/trigget.go
rename to internal/flags/trigger.go
index 2c5cff8..05865d7 100644
--- a/internal/flags/trigget.go
+++ b/internal/flags/trigger.go
@@ -18,8 +18,10 @@
 
 package flags
 
-var Interval string
-var Times int
-var Action string
-var HttpUrl string
-var HttpMethod string
+var (
+	Interval string
+	Times    int
+	Action   string
+	URL      string
+	Method   string
+)