diff --git a/api/test/e2e/consumer_test.go b/api/test/e2e/consumer_test.go index 2edfdf372d..10327060b4 100644 --- a/api/test/e2e/consumer_test.go +++ b/api/test/e2e/consumer_test.go @@ -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", @@ -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", @@ -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", @@ -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", diff --git a/api/test/e2e/route_online_debug_test.go b/api/test/e2e/route_online_debug_test.go index e8fc679acb..4796d20fb6 100644 --- a/api/test/e2e/route_online_debug_test.go +++ b/api/test/e2e/route_online_debug_test.go @@ -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", @@ -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", @@ -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",