Merge pull request #1548 from XiShanYongYe-Chang/fix-failing-e2e

[E2E] fix failing e2e case for namespace not found
This commit is contained in:
karmada-bot 2022-03-26 15:48:57 +08:00 committed by GitHub
commit e85d376bcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,9 @@ var _ = ginkgo.Describe("Aggregated Kubernetes API Endpoint testing", func() {
})
ginkgo.BeforeEach(func() {
// Wait for namespace present before creating resources in it.
framework.WaitNamespacePresentOnCluster(member1, tomServiceAccount.Namespace)
klog.Infof("Create ServiceAccount(%s) in the cluster(%s)", klog.KObj(tomServiceAccount).String(), member1)
clusterClient := framework.GetClusterClient(member1)
gomega.Expect(clusterClient).ShouldNot(gomega.BeNil())