Skip to content

Commit

Permalink
Reduce randomize testing timeouts in CI (#2648)
Browse files Browse the repository at this point in the history
* Increase travis_wait time to 45m for randomized tests.

* Bump hypothesis version.

* Decrease to 50 random circuits and fail on first first found error.

* Disable hypothesis deadlines.
  • Loading branch information
kdk authored and ajavadia committed Jun 18, 2019
1 parent 508feaf commit 4f1ecf2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
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
@@ -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
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

0 comments on commit 4f1ecf2

Please sign in to comment.