Skip to content

Commit 57b45b2

Browse files
authored
Merge pull request #5293 from zhzhuang-zju/cleanupe2e
cleanup: Remove redundant e2e testing steps
2 parents 6b87604 + 978ea81 commit 57b45b2

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

test/e2e/karmadactl_test.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -524,12 +524,6 @@ var _ = ginkgo.Describe("Karmadactl exec testing", func() {
524524
})
525525

526526
ginkgo.It("Test exec command", func() {
527-
waitForPodReady := func(namespace, podName string) {
528-
framework.WaitPodPresentOnClusterFitWith(framework.ClusterNames()[0], namespace, podName, func(pod *corev1.Pod) bool {
529-
return pod.Status.Phase == corev1.PodRunning
530-
})
531-
}
532-
waitForPodReady(pod.Namespace, pod.Name)
533527
framework.WaitPodPresentOnClustersFitWith(framework.ClusterNames(), pod.Namespace, pod.Name,
534528
func(pod *corev1.Pod) bool {
535529
return pod.Status.Phase == corev1.PodRunning
@@ -543,7 +537,7 @@ var _ = ginkgo.Describe("Karmadactl exec testing", func() {
543537
})
544538
})
545539

546-
var _ = ginkgo.Describe("Karmadactl top testing", ginkgo.Labels{NeedCreateCluster}, func() {
540+
var _ = ginkgo.Describe("Karmadactl top testing", func() {
547541
ginkgo.Context("Karmadactl top pod which does not exist", func() {
548542
ginkgo.It("Karmadactl top pod which does not exist", func() {
549543
podName := podNamePrefix + rand.String(RandomStrLength)

0 commit comments

Comments
 (0)