summaryrefslogtreecommitdiff
path: root/git_review
diff options
context:
space:
mode:
authorJeremy Stanley <fungi@yuggoth.org>2021-02-26 23:11:46 +0000
committerJeremy Stanley <fungi@yuggoth.org>2021-02-26 23:11:46 +0000
commit7e2f99b2d09371664975d78cc3ac4ff3081d11c1 (patch)
tree955dfcc8dd7756ce9f8ee7f4bebf4843c47f8785 /git_review
parentc1b1e6cbfe5a6bcb2b851eb0ae3ee1ace8f41da6 (diff)
downloadgit-review-7e2f99b2d09371664975d78cc3ac4ff3081d11c1.tar.gz
Increase test timeout to 5 minutes
A 2-minute global test timeout was added to the base test class back in 2014, to prevent tests from hanging until the job timeout is hit. This has served us well, but with updates to Gerrit and increasing complexity of our tests, we often get a slew of test timeouts on some CI nodes (ad on my workstation for that matter!). Increase this to 5 minutes, which should still serve the intended purpose while providing more time for tests to complete on less-performant systems. Change-Id: I9673ce3cf18f9e4c96fd7e9f96f5ddce2ef6d957
Diffstat (limited to 'git_review')
-rw-r--r--git_review/tests/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git_review/tests/__init__.py b/git_review/tests/__init__.py
index 8652d42..c6af575 100644
--- a/git_review/tests/__init__.py
+++ b/git_review/tests/__init__.py
@@ -197,7 +197,7 @@ class BaseGitReviewTestCase(testtools.TestCase, GerritHelpers):
Require Gerrit war file in the .gerrit directory to run Gerrit local.
"""
super(BaseGitReviewTestCase, self).setUp()
- self.useFixture(fixtures.Timeout(2 * 60, True))
+ self.useFixture(fixtures.Timeout(5 * 60, True))
# ensures git-review command runs in local mode (for functional tests)
self.useFixture(