Skip to content

Commit

Permalink
Extend the waiting for node assignment of an ungated pod. (#2531)
Browse files Browse the repository at this point in the history
Co-authored-by: Traian Schiau <[email protected]>
  • Loading branch information
k8s-infra-cherrypick-robot and trasc authored Jul 3, 2024
1 parent 231d48b commit 38f210a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/singlecluster/pod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,14 @@ var _ = ginkgo.Describe("Pod groups", func() {
})

ginkgo.By("Check the second pod is no longer pending", func() {
// Since kueue is not involved in this transition (ungated pod to no pending)
// it is acceptable to wait `LongTimeout` for it to happen.
gomega.Eventually(func(g gomega.Gomega) {
var p corev1.Pod
g.Expect(k8sClient.Get(ctx, client.ObjectKeyFromObject(group[1]), &p)).To(gomega.Succeed())
g.Expect(p.Status.Phase).NotTo(gomega.Equal(corev1.PodPending))
g.Expect(p.Spec.NodeName).NotTo(gomega.BeEmpty())
}, util.Timeout, util.Interval).Should(gomega.Succeed())
}, util.LongTimeout, util.Interval).Should(gomega.Succeed())
})

ginkgo.By("Check the first pod is Unschedulable", func() {
Expand Down

0 comments on commit 38f210a

Please sign in to comment.