Investigating timeouts

main
Yannis Spiliopoulos 9 years ago
parent 4d9ced42bc
commit fbb29ec333

@ -16,6 +16,6 @@ install:
- pip install coveralls - pip install coveralls
#- pip install pytest # installed by Travis by default already #- pip install pytest # installed by Travis by default already
script: script:
- RUN_SLOW_TESTS_TOO=1 py.test --cov rq --durations=10 - RUN_SLOW_TESTS_TOO=1 py.test --cov rq --durations=5
after_success: after_success:
- coveralls - coveralls

@ -587,7 +587,7 @@ class TimeoutTestCase:
def setUp(self): def setUp(self):
# we want tests to fail if signal are ignored and the work remain # we want tests to fail if signal are ignored and the work remain
# running, so set a signal to kill them after X seconds # running, so set a signal to kill them after X seconds
self.killtimeout = 10 self.killtimeout = 20
signal.signal(signal.SIGALRM, self._timeout) signal.signal(signal.SIGALRM, self._timeout)
signal.alarm(self.killtimeout) signal.alarm(self.killtimeout)

Loading…
Cancel
Save