From d9d56c0e271f4cda06bae1407c067a1b73b80866 Mon Sep 17 00:00:00 2001 From: Alex Suraci Date: Thu, 24 Jul 2014 14:09:41 -0700 Subject: [PATCH] loosen up timeouts in maintain tests Signed-off-by: Simon Leung --- maintain/maintain_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maintain/maintain_test.go b/maintain/maintain_test.go index 330f97ca..3d2a7713 100644 --- a/maintain/maintain_test.go +++ b/maintain/maintain_test.go @@ -97,11 +97,11 @@ var _ = Describe("Maintain Presence", func() { fakeBBS.MaintainExecutorPresenceReturns(presence, newMaintainStatusChan, nil) fakeClient.PingReturns(nil) //healthy again - Eventually(fakeClient.PingCallCount).Should(Equal(2)) + Eventually(fakeClient.PingCallCount, 10*heartbeatInterval).Should(Equal(2)) }) It("should attempt to reestablish presence", func() { - Eventually(fakeBBS.MaintainExecutorPresenceCallCount).Should(Equal(2)) + Eventually(fakeBBS.MaintainExecutorPresenceCallCount, 10*heartbeatInterval).Should(Equal(2)) }) It("should ping the executor on each maintain tick", func() { @@ -111,7 +111,7 @@ var _ = Describe("Maintain Presence", func() { case <-time.Tick(time.Second): Fail("newMaintainStatusChan not called in time") } - Eventually(fakeClient.PingCallCount).Should(Equal(3)) + Eventually(fakeClient.PingCallCount, 10*heartbeatInterval).Should(Equal(3)) }) }) })