mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 20:42:26 +00:00
chore: optimize the error msg
This commit is contained in:
parent
fc7dadf370
commit
7015f753e2
@ -129,8 +129,7 @@ while true; do sleep 1; done
|
|||||||
|
|
||||||
ginkgo.By(fmt.Sprintf("Container '%s': should be possible to delete", testContainer.Name))
|
ginkgo.By(fmt.Sprintf("Container '%s': should be possible to delete", testContainer.Name))
|
||||||
gomega.Expect(terminateContainer.Delete(ctx)).To(gomega.Succeed())
|
gomega.Expect(terminateContainer.Delete(ctx)).To(gomega.Succeed())
|
||||||
errMsg := fmt.Sprintf("container '%s': should have been terminated by now.", testContainer.Name)
|
gomega.Eventually(ctx, terminateContainer.Present, ContainerStatusRetryTimeout, ContainerStatusPollInterval).Should(gomega.BeFalseBecause("container '%s': should have been terminated by now.", testContainer.Name))
|
||||||
gomega.Eventually(ctx, terminateContainer.Present, ContainerStatusRetryTimeout, ContainerStatusPollInterval).Should(gomega.BeFalseBecause(errMsg))
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user