Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce randomize testing timeouts in CI #2648

Merged
merged 5 commits into from
Jun 18, 2019
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ jobs:
script:
- python setup.py build_ext --inplace
- pip install "qiskit-aer"
- travis_wait make test_randomized
- travis_wait 45 make test_randomized

matrix:
fast_finish: true
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
coverage>=4.4.0
hypothesis>=4.7.3
hypothesis>=4.24.3
ipywidgets>=7.3.0
jupyter
matplotlib>=2.1
Expand Down
5 changes: 4 additions & 1 deletion test/randomized/test_transpiler_equivalence.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import os

from hypothesis import assume
from hypothesis import assume, settings
from hypothesis.stateful import multiple, rule, precondition, invariant
from hypothesis.stateful import Bundle, RuleBasedStateMachine

Expand Down Expand Up @@ -52,6 +52,9 @@
FakeTokyo(), FakePoughkeepsie()]


@settings(report_multiple_bugs=False,
max_examples=50,
deadline=None)
class QCircuitMachine(RuleBasedStateMachine):
"""Build a Hypothesis rule based state machine for constructing, transpiling
and simulating a series of random QuantumCircuits.
Expand Down