Skip to content

Giving enough time for the plugins to register #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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