Decrease polling frequency to once every 5 seconds
slack has a rate limit of once per second.
@@ -58,7 +58,7 @@ var _ = Describe("Revok", func() {
sha := makeCommit(githubClient, owner, repo)
By("checking Slack")
- Eventually(messageHistory.recentMessages, slackTimeout).Should(ContainAMessageAlertingAboutCredentialsIn(sha))
+ Eventually(messageHistory.recentMessages, slackTimeout, 5*time.Second).Should(ContainAMessageAlertingAboutCredentialsIn(sha))
})
})
