Permalink
Browse files

increase time to wait for flaky test

  • Loading branch information...
1 parent 098c695 commit 1f25494bb0dc483c3dcff06cf9379c2c0e5a6857 schettino72 committed Feb 20, 2014
Showing with 4 additions and 4 deletions.
  1. +0 −1 .travis.yml
  2. +4 −3 tests/test_cmd_auto.py
View
@@ -24,7 +24,6 @@ branches:
script:
- doit checker
- py.test
- - if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then coverage help; fi
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then coverage run --parallel-mode `which py.test`; fi
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then coverage combine; fi
after_success:
@@ -67,10 +67,11 @@ def ok():
for x in range(5):
try:
got = open(target1, 'r').read()
+ print got
if got == 'ok':
break
except:
- pass
+ print 'busy'
time.sleep(0.1)
else: # pragma: no cover
raise Exception("target not created")
@@ -80,15 +81,15 @@ def ok():
fd.write("hi" + str(time.asctime()))
fd.close()
- run_wait_proc.join(.2)
+ run_wait_proc.join(.5)
if run_wait_proc.is_alive(): # pragma: no cover
# this test is very flaky so we give it one more chance...
# write on file to terminate process
fd = open(dependency1, 'w')
fd.write("hi" + str(time.asctime()))
fd.close()
- run_wait_proc.join(.2)
+ run_wait_proc.join(.5)
if run_wait_proc.is_alive(): # pragma: no cover
run_wait_proc.terminate()
raise Exception("process not terminated")

0 comments on commit 1f25494

Please sign in to comment.