Setting timeout to 30 seconds
This commit is contained in:
parent
03cbcd4ee5
commit
5b74538fb6
2 changed files with 4 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ def test_generate_report(baseline_form):
|
|||
# generate a report for it. Because this is what happens in the cara
|
||||
# calculator, we confirm that the generation happens within a reasonable
|
||||
# time threshold.
|
||||
time_limit: float = 20.0 # seconds
|
||||
time_limit: float = 30.0 # seconds
|
||||
|
||||
start = time.perf_counter()
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import tornado.testing
|
|||
import cara.apps.calculator
|
||||
from cara.apps.calculator.report_generator import generate_qr_code
|
||||
|
||||
_TIMEOUT = 30.
|
||||
|
||||
@pytest.fixture
|
||||
def app():
|
||||
|
|
@ -45,7 +46,7 @@ class TestBasicApp(tornado.testing.AsyncHTTPTestCase):
|
|||
def get_app(self):
|
||||
return cara.apps.calculator.make_app()
|
||||
|
||||
@tornado.testing.gen_test(timeout=20)
|
||||
@tornado.testing.gen_test(timeout=_TIMEOUT)
|
||||
def test_report(self):
|
||||
response = yield self.http_client.fetch(self.get_url('/calculator/baseline-model/result'))
|
||||
self.assertEqual(response.code, 200)
|
||||
|
|
@ -58,7 +59,7 @@ class TestCernApp(tornado.testing.AsyncHTTPTestCase):
|
|||
cern_theme = Path(cara.apps.calculator.__file__).parent / 'themes' / 'cern'
|
||||
return cara.apps.calculator.make_app(theme_dir=cern_theme)
|
||||
|
||||
@tornado.testing.gen_test(timeout=20)
|
||||
@tornado.testing.gen_test(timeout=_TIMEOUT)
|
||||
def test_report(self):
|
||||
response = yield self.http_client.fetch(self.get_url('/calculator/baseline-model/result'))
|
||||
self.assertEqual(response.code, 200)
|
||||
|
|
|
|||
Loading…
Reference in a new issue