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

juzhiyuan 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 0926b59  fix: backend e2e test case unstable (#2017)
0926b59 is described below

commit 0926b595a62cb07560baef1a2a4feac2387c0013
Author: nic-chen <[email protected]>
AuthorDate: Sat Aug 7 20:13:47 2021 +0800

    fix: backend e2e test case unstable (#2017)
---
 api/test/e2enew/migrate/migrate_suite_test.go | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/api/test/e2enew/migrate/migrate_suite_test.go 
b/api/test/e2enew/migrate/migrate_suite_test.go
index 8d33fc7..12acaa3 100644
--- a/api/test/e2enew/migrate/migrate_suite_test.go
+++ b/api/test/e2enew/migrate/migrate_suite_test.go
@@ -19,12 +19,22 @@ package migrate_test
 
 import (
        "testing"
+       "time"
 
        . "github.com/onsi/ginkgo"
        . "github.com/onsi/gomega"
+
+       "github.com/apisix/manager-api/test/e2enew/base"
 )
 
 func TestMigrate(t *testing.T) {
        RegisterFailHandler(Fail)
        RunSpecs(t, "Migrate Suite")
 }
+
+var _ = AfterSuite(func() {
+       base.CleanResource("routes")
+       base.CleanResource("upstreams")
+       base.CleanResource("consumers")
+       time.Sleep(base.SleepTime)
+})

Reply via email to