Skip to content

Commit e85d376

Browse files
authored
Merge pull request karmada-io#1548 from XiShanYongYe-Chang/fix-failing-e2e
[E2E] fix failing e2e case for namespace not found
2 parents 431677b + c9f2773 commit e85d376

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/e2e/aggregatedapi_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ var _ = ginkgo.Describe("Aggregated Kubernetes API Endpoint testing", func() {
5656
})
5757

5858
ginkgo.BeforeEach(func() {
59+
// Wait for namespace present before creating resources in it.
60+
framework.WaitNamespacePresentOnCluster(member1, tomServiceAccount.Namespace)
61+
5962
klog.Infof("Create ServiceAccount(%s) in the cluster(%s)", klog.KObj(tomServiceAccount).String(), member1)
6063
clusterClient := framework.GetClusterClient(member1)
6164
gomega.Expect(clusterClient).ShouldNot(gomega.BeNil())

0 commit comments

Comments
 (0)