From 90b8c877eded25854abacf4e7b3b7e4be330675d Mon Sep 17 00:00:00 2001 From: Adelina Tuvenie Date: Thu, 7 Mar 2019 17:04:25 +0200 Subject: [PATCH] Update gmsa test Wait for the container to be in Running state before running any command. --- test/e2e/windows/gmsa.go | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/test/e2e/windows/gmsa.go b/test/e2e/windows/gmsa.go index 1f9381f737a..687a600f257 100644 --- a/test/e2e/windows/gmsa.go +++ b/test/e2e/windows/gmsa.go @@ -68,23 +68,7 @@ var _ = SIGDescribe("[Feature:Windows] [Feature:WindowsGMSA] GMSA [Slow]", func( } ginkgo.By("creating a pod with correct GMSA annotations") - f.PodClient().Create(pod) - - ginkgo.By("waiting for the pod and its containers to be running") - gomega.Eventually(func() bool { - pod, err := f.PodClient().Get(podName, metav1.GetOptions{}) - if err != nil && pod.Status.Phase != corev1.PodRunning { - return false - } - - for _, containerStatus := range pod.Status.ContainerStatuses { - if containerStatus.State.Running == nil { - return false - } - } - - return true - }, 5*time.Minute, 1*time.Second).Should(gomega.BeTrue()) + f.PodClient().CreateSync(pod) ginkgo.By("checking the domain reported by nltest in the containers") namespaceOption := fmt.Sprintf("--namespace=%s", f.Namespace.Name)