Skip to content

Commit

Permalink
labhub_test: Increase timeout to fix random CI failures
Browse files Browse the repository at this point in the history
Default 5 sec timeout was causing unexpected random CI
failure.

Closes coala#564
  • Loading branch information
nvzard committed Jun 21, 2018
1 parent bccf1db commit b370e04
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/labhub_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ def test_alive(self):
'coala-bears': create_autospec(IGitt.GitHub.GitHub.GitHubRepository),
'coala-utils': create_autospec(IGitt.GitHub.GitHub.GitHubRepository)
}

# for the branch where program sleeps
labhub.gh_repos.update({str(i):
create_autospec(IGitt.GitHub.GitHub.GitHubRepository)
Expand All @@ -400,12 +401,12 @@ def test_alive(self):
labhub.gh_repos['coala'].search_mrs.return_value = []
testbot.assertCommand('!pr stats 5hours',
'0 PRs opened in last 5 hours\n'
'The community is dead')
'The community is dead', timeout=100)

labhub.gh_repos['coala'].search_mrs.return_value = [
1, 2, 3, 4, 5,
6, 7, 8, 9, 10
]
testbot.assertCommand('!pr stats 3hours',
'10 PRs opened in last 3 hours\n'
'The community is on fire')
'The community is on fire', timeout=100)

0 comments on commit b370e04

Please sign in to comment.