mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-13 19:01:10 -04:00
Merge pull request #137764 from pacoxu/sig-node-standalone
e2e_node: fix pod StartTime assertion to compare time value
This commit is contained in:
commit
ca5c40e58a
2 changed files with 3 additions and 3 deletions
|
|
@ -394,7 +394,7 @@ var _ = SIGDescribe(feature.StandaloneMode, func() {
|
|||
ginkgo.By("wait for the mirror pod to be updated")
|
||||
gomega.Eventually(ctx, func(g gomega.Gomega) {
|
||||
pod, err := getPodFromStandaloneKubelet(ctx, staticPod.Namespace, staticPod.Name)
|
||||
g.Expect(pod.Status.StartTime).NotTo(gomega.Equal(startTime))
|
||||
g.Expect(pod.Status.StartTime.Equal(startTime)).To(gomega.BeFalseBecause("startTime should not be equal"))
|
||||
g.Expect(err).Should(gomega.Succeed())
|
||||
g.Expect(pod.Status.InitContainerStatuses).To(gomega.HaveLen(1))
|
||||
cstatus := pod.Status.InitContainerStatuses[0]
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ var _ = SIGDescribe("StaticPod", framework.WithSerial(), func() {
|
|||
ginkgo.By("wait for the mirror pod to be updated")
|
||||
gomega.Eventually(ctx, func(g gomega.Gomega) {
|
||||
pod, err := f.ClientSet.CoreV1().Pods(staticPod.Namespace).Get(ctx, mirrorPodName, metav1.GetOptions{})
|
||||
g.Expect(pod.Status.StartTime).NotTo(gomega.Equal(startTime))
|
||||
g.Expect(pod.Status.StartTime.Equal(startTime)).To(gomega.BeFalseBecause("startTime should not be equal"))
|
||||
g.Expect(err).Should(gomega.Succeed())
|
||||
g.Expect(pod.Status.InitContainerStatuses).To(gomega.HaveLen(1))
|
||||
cstatus := pod.Status.InitContainerStatuses[0]
|
||||
|
|
@ -181,7 +181,7 @@ var _ = SIGDescribe("StaticPod", framework.WithSerial(), func() {
|
|||
ginkgo.By("wait for the mirror pod to be updated")
|
||||
gomega.Eventually(ctx, func(g gomega.Gomega) {
|
||||
pod, err := f.ClientSet.CoreV1().Pods(staticPod.Namespace).Get(ctx, mirrorPodName, metav1.GetOptions{})
|
||||
g.Expect(pod.Status.StartTime).NotTo(gomega.Equal(startTime))
|
||||
g.Expect(pod.Status.StartTime.Equal(startTime)).To(gomega.BeFalseBecause("startTime should not be equal"))
|
||||
g.Expect(err).Should(gomega.Succeed())
|
||||
g.Expect(pod.Status.InitContainerStatuses).To(gomega.HaveLen(1))
|
||||
cstatus := pod.Status.InitContainerStatuses[0]
|
||||
|
|
|
|||
Loading…
Reference in a new issue