Skip to content

Commit

Permalink
Limit number of trials in backward tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bouthilx committed May 7, 2021
1 parent f6aea11 commit 02dae48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tests/functional/backward_compatibility/python_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
from orion.client import create_experiment

create_experiment(
"hunt-python", space={"x": "uniform(-50,50)"}, algorithms={"random": {"seed": 1}}
"hunt-python",
space={"x": "uniform(-50,50)"},
algorithms={"random": {"seed": 1}},
max_trials=10,
)

create_experiment(
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ deps =
-rtests/requirements.txt
coverage
commands =
coverage run --parallel-mode -m pytest -vv tests/functional/backward_compatibility/test_versions.py
coverage run --parallel-mode -m pytest -vv tests/functional/backward_compatibility/test_versions.py --timeout=180
coverage combine
coverage report -m
coverage xml
Expand Down

0 comments on commit 02dae48

Please sign in to comment.