Skip to content

Commit

Permalink
Giving enough time for the plugins to register (#17)
Browse files Browse the repository at this point in the history
* Giving enough time for the plugins to register

* Fixing travis

* Removing the docs building

* Giving a bit more time
  • Loading branch information
josenavas authored and antgonza committed Jun 27, 2017
1 parent 53a7b6a commit 7eba128
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ before_install:
# Update conda itself
- conda update --yes conda
install:
- travis_retry conda create --yes -n qiita_env python=2.7 pip nose flake8
- travis_retry conda create --yes -n qiita python=2.7 pip nose flake8
pyzmq networkx pyparsing natsort mock future libgfortran
'pandas>=0.18' 'scipy>0.13.0' 'numpy>=1.7' 'h5py>=2.3.1'
- source activate qiita_env
- source activate qiita
- pip install sphinx==1.5.5 sphinx-bootstrap-theme coveralls ipython[all]==2.4.1
- pip install https://github.com/biocore/qiita/archive/analysis-refactor.zip --process-dependency-links
- export QIITA_SERVER_CERT=$HOME/miniconda3/envs/qiita_env/lib/python2.7/site-packages/qiita_core/support_files/server.crt
- export MOI_CONFIG_FP=$HOME/miniconda3/envs/qiita_env/lib/python2.7/site-packages/qiita_core/support_files/config_test.cfg
- export QIITA_SERVER_CERT=$HOME/miniconda3/envs/qiita/lib/python2.7/site-packages/qiita_core/support_files/server.crt
- export MOI_CONFIG_FP=$HOME/miniconda3/envs/qiita/lib/python2.7/site-packages/qiita_core/support_files/config_test.cfg
- ipython profile create qiita-general --parallel
- qiita-env start_cluster qiita-general
- qiita-env make --no-load-ontologies
Expand All @@ -27,8 +27,8 @@ install:
- source activate env_name
- travis_retry pip install .
before_script:
- source activate qiita_env
- qiita pet webserver start &
- source activate qiita
- qiita pet webserver --no-build-docs start &
script:
- source activate env_name
- sleep 5 # give enough time to the webserver to start
Expand Down
4 changes: 3 additions & 1 deletion qiita_client/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def setUpClass(cls):
cls.client_secret,
server_cert=cls.server_cert)
cls.qclient.post('/apitest/reload_plugins/')
# Give enough time for the plugins to register
sleep(3)

@classmethod
def tearDownClass(cls):
Expand All @@ -48,7 +50,7 @@ def _wait_for_running_job(self, job_id):
This function only polls for five seconds. After those five seconds,
it returns whatever the last seen status for the given job
"""
for i in range(10):
for i in range(20):
sleep(0.5)
status = self.qclient.get_job_info(job_id)['status']
if status != 'running':
Expand Down

0 comments on commit 7eba128

Please sign in to comment.