From 7e2f99b2d09371664975d78cc3ac4ff3081d11c1 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Fri, 26 Feb 2021 23:11:46 +0000 Subject: 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 --- git_review/tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git_review') 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( -- cgit v1.2.1