Skip to content

Commit 6d456e2

Browse files
committed
test: added timeout to simulator tests
1 parent 0252bdd commit 6d456e2

File tree

3 files changed

+67
-56
lines changed

3 files changed

+67
-56
lines changed

Dockerfile-assets/Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ requests = "*"
4949
parameterized = "*"
5050
pytest = "*"
5151
pytest-forked = "*"
52+
pytest-timeout = "*"
5253

5354
[requires]
5455
python_version = "3.9"

Dockerfile-assets/Pipfile.lock

Lines changed: 64 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/test_simulators.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import numpy
99
import os
1010
import parameterized
11+
import pytest
1112
import requests
1213
import yaml
1314
import shutil
@@ -32,6 +33,7 @@ def tearDown(self):
3233
(simulator['id'], simulator)
3334
for simulator in SIMULATORS
3435
)
36+
@pytest.mark.timeout(5 * 60)
3537
def test(self, id, simulator):
3638
simulator_module = simulator['api']['module']
3739
example_combine_archive = simulator['exampleCombineArchive']

0 commit comments

Comments
 (0)