Skip to content
This repository has been archived by the owner on Jan 30, 2019. It is now read-only.

Commit

Permalink
tests: move timeout from source to travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wavexx committed Aug 21, 2014
1 parent eef06ec commit 10cf382
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ install:
- python setup.py -q install

script:
- nosetests -v
- BOND_TIMEOUT=5 nosetests -v
5 changes: 2 additions & 3 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@

# We keep the global timeout for testing way shorter than the default of 60.
# This is done to limit execution time when tests are broken and also to spot
# performance regressions. travis-ci though has truly unpredictable lag, so
# we still make an exception.
TIMEOUT = 5 if 'TRAVIS' in os.environ else 1
# performance regressions.
TIMEOUT = int(os.environ.get('BOND_TIMEOUT', 1))


def knownfail(func):
Expand Down

0 comments on commit 10cf382

Please sign in to comment.