Add 2m timeout to tests
If some test hangs by some reason, we get 1h delay in the gate until Jenkins kills the job. This will shorten the delay to ~15min tops. Change-Id: I8c6533aecd8b72b6c904c8e1724a0b27ff943d5b
This commit is contained in:
parent
242d80b125
commit
7b43070c6f
@ -25,6 +25,7 @@ else:
|
||||
import urllib.request
|
||||
urlopen = urllib.request.urlopen
|
||||
|
||||
import fixtures
|
||||
import testtools
|
||||
|
||||
from git_review.tests import utils
|
||||
@ -107,6 +108,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.init_dirs()
|
||||
self._pick_gerrit_port_and_dir()
|
||||
|
@ -1,5 +1,6 @@
|
||||
hacking>=0.5.6,<0.6
|
||||
discover
|
||||
|
||||
fixtures>=0.3.14,<0.4
|
||||
testrepository>=0.0.13
|
||||
testtools>=0.9.27
|
||||
|
Loading…
x
Reference in New Issue
Block a user