This is an automated email from the ASF dual-hosted git repository.
chenjunxu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new 78b4031 fix: fix some sleep location in e2e test (#1123)
78b4031 is described below
commit 78b4031d6899be672fcb41b29fcb40f9f898509b
Author: Peter Zhu <[email protected]>
AuthorDate: Fri Dec 25 17:44:53 2020 +0800
fix: fix some sleep location in e2e test (#1123)
Co-authored-by: 琚致远 <[email protected]>
---
api/test/e2e/consumer_test.go | 1 -
api/test/e2e/label_test.go | 1 +
api/test/e2e/ssl_test.go | 1 +
3 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/api/test/e2e/consumer_test.go b/api/test/e2e/consumer_test.go
index 1032706..6c26170 100644
--- a/api/test/e2e/consumer_test.go
+++ b/api/test/e2e/consumer_test.go
@@ -157,7 +157,6 @@ func TestConsumer_Update_And_Get(t *testing.T) {
Headers: map[string]string{"Authorization": token},
ExpectStatus: http.StatusOK,
ExpectBody: "\"code\":0",
- Sleep: sleepTime,
},
{
Desc: "update consumer by PUT",
diff --git a/api/test/e2e/label_test.go b/api/test/e2e/label_test.go
index dd2e366..b984c08 100644
--- a/api/test/e2e/label_test.go
+++ b/api/test/e2e/label_test.go
@@ -132,6 +132,7 @@ func TestLabel(t *testing.T) {
Path: "/apisix/admin/labels/route",
ExpectStatus: http.StatusOK,
ExpectBody:
"{\"build\":\"16\"},{\"env\":\"production\"},{\"version\":\"v2\"}",
+ Sleep: sleepTime,
},
{
Desc: "get consumer label",
diff --git a/api/test/e2e/ssl_test.go b/api/test/e2e/ssl_test.go
index 9dc3b80..6168900 100644
--- a/api/test/e2e/ssl_test.go
+++ b/api/test/e2e/ssl_test.go
@@ -108,6 +108,7 @@ func TestSSL_Basic(t *testing.T) {
Path: "/apisix/admin/routes/r1",
Headers: map[string]string{"Authorization": token},
ExpectStatus: http.StatusOK,
+ Sleep: sleepTime,
},
{
Desc: "hit the route just created using HTTPS",