Use the right waiting time for eventually.

This commit is contained in:
Random-Liu
2016-09-02 16:01:53 -07:00
parent 83035a52ce
commit 27779425e3

View File

@@ -202,7 +202,7 @@ var _ = framework.KubeDescribe("NodeProblemDetector", func() {
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())
}, pollTimeout, pollInterval).Should(Succeed())
num := 3
By(fmt.Sprintf("Inject %d temporary errors", num))