Skip to content

Commit

Permalink
fix: be consumer e2e test ci failed in pr#999 (#1118)
Browse files Browse the repository at this point in the history
* fix: be consumer e2e test ci failed in pr#999

* fix: online debug sleep

Co-authored-by: 琚致远 <juzhiyuan@apache.org>
  • Loading branch information
liuxiran and juzhiyuan committed Dec 25, 2020
1 parent 95ca6e0 commit 02a4702
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/test/e2e/consumer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ func TestConsumer_Create_And_Get(t *testing.T) {
Headers: map[string]string{"Authorization": token},
ExpectStatus: http.StatusOK,
ExpectBody: "\"code\":0",
Sleep: sleepTime,
},
{
Desc: "get consumer",
Expand All @@ -98,6 +97,7 @@ func TestConsumer_Create_And_Get(t *testing.T) {
Headers: map[string]string{"Authorization": token},
ExpectStatus: http.StatusOK,
ExpectBody: "\"username\":\"consumer_2\"",
Sleep: sleepTime,
},
{
Desc: "create consumer without username",
Expand Down Expand Up @@ -179,7 +179,6 @@ func TestConsumer_Update_And_Get(t *testing.T) {
Headers: map[string]string{"Authorization": token},
ExpectStatus: http.StatusOK,
ExpectBody: "\"code\":0",
Sleep: sleepTime,
},
{
Desc: "get consumer",
Expand All @@ -189,6 +188,7 @@ func TestConsumer_Update_And_Get(t *testing.T) {
Headers: map[string]string{"Authorization": token},
ExpectStatus: http.StatusOK,
ExpectBody: "\"rejected_code\":504",
Sleep: sleepTime,
},
{
Desc: "delete consumer",
Expand Down
3 changes: 2 additions & 1 deletion api/test/e2e/route_online_debug_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func TestRoute_Online_Debug_Route_With_Query_Params(t *testing.T) {
Path: "/hello",
ExpectStatus: http.StatusNotFound,
ExpectBody: "{\"error_msg\":\"404 Route Not Found\"}\n",
Sleep: sleepTime,
},
{
Desc: "create route with query params",
Expand All @@ -86,7 +87,6 @@ func TestRoute_Online_Debug_Route_With_Query_Params(t *testing.T) {
}`,
Headers: map[string]string{"Authorization": token},
ExpectStatus: http.StatusOK,
Sleep: sleepTime,
},
{
Desc: "online debug route with query params",
Expand All @@ -100,6 +100,7 @@ func TestRoute_Online_Debug_Route_With_Query_Params(t *testing.T) {
}`,
Headers: map[string]string{"Authorization": token},
ExpectStatus: http.StatusOK,
Sleep: sleepTime,
},
{
Desc: "delete route",
Expand Down

0 comments on commit 02a4702

Please sign in to comment.