Skip to content

Commit

Permalink
wait for a moment before start to clean up yurt-e2e-test namespace (#…
Browse files Browse the repository at this point in the history
…1063)

Signed-off-by: HIHIA <[email protected]>

Signed-off-by: HIHIA <[email protected]>
  • Loading branch information
YTGhost authored Nov 21, 2022
1 parent 9d97567 commit d5ffeda
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/e2e/autonomy/autonomy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,14 @@ var _ = ginkgo.AfterSuite(func() {
gomega.Expect(err).NotTo(gomega.HaveOccurred(), "fail to reconnect cloud node to kind bridge")
klog.Infof("successfully reconnected cloud node")

ginkgo.By("delete namespace:" + YurtE2ENamespaceName)
gomega.Eventually(func() error {
return ns.DeleteNameSpace(c, YurtE2ENamespaceName)
}).WithTimeout(10 * time.Second).WithPolling(1 * time.Second).Should(gomega.Succeed())
_, err = c.Discovery().ServerVersion()
return err
}).WithTimeout(20 * time.Second).WithPolling(1 * time.Second).Should(gomega.Succeed())

ginkgo.By("delete namespace:" + YurtE2ENamespaceName)
err = ns.DeleteNameSpace(c, YurtE2ENamespaceName)
gomega.Expect(err).NotTo(gomega.HaveOccurred(), "fail to delete created namespaces")
})

func TestEdgeAutonomy(t *testing.T) {
Expand Down

0 comments on commit d5ffeda

Please sign in to comment.