Fix node problem detector e2e flake

This commit is contained in:
Random-Liu 2016-06-26 16:34:25 -07:00
parent ff7c280200
commit aecb5357a6

View File

@ -198,8 +198,8 @@ var _ = framework.KubeDescribe("NodeProblemDetector", func() {
Consistently(func() error {
return verifyNoEvents(c.Events(eventNamespace), eventListOptions)
}, pollConsistent, pollInterval).Should(Succeed())
By("Make sure the default node condition is false")
Consistently(func() error {
By("Make sure the default node condition is generated")
Eventually(func() error {
return verifyCondition(c.Nodes(), node.Name, condition, api.ConditionFalse, defaultReason, defaultMessage)
}, pollConsistent, pollInterval).Should(Succeed())