Skip to content

Commit

Permalink
loosen up timeouts in maintain tests
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Leung <leungs@us.ibm.com>
  • Loading branch information
Alex Suraci authored and Simon Leung committed Jul 24, 2014
1 parent d0b2f99 commit d9d56c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions maintain/maintain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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))
})
})
})
Expand Down

0 comments on commit d9d56c0

Please sign in to comment.