From aecb5357a60d47abd16047edce49eff8baaf4396 Mon Sep 17 00:00:00 2001 From: Random-Liu Date: Sun, 26 Jun 2016 16:34:25 -0700 Subject: [PATCH] Fix node problem detector e2e flake --- test/e2e/node_problem_detector.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/node_problem_detector.go b/test/e2e/node_problem_detector.go index 9b49948cbb8..5dc5dc05761 100644 --- a/test/e2e/node_problem_detector.go +++ b/test/e2e/node_problem_detector.go @@ -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())