Skip to content
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

Remove timeout assertion #1859

Merged
merged 1 commit into from
Oct 23, 2017
Merged
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
2 changes: 0 additions & 2 deletions digits/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ def job_wait_completion(cls, job_id, timeout=10, polling_period=0.5, job_type='j
polling_period -- how often to poll (seconds)
job_type -- [datasets|models]
"""
start = time.time()
while True:
status = cls.job_status(job_id, job_type=job_type)
if status in ['Done', 'Abort', 'Error']:
Expand All @@ -144,7 +143,6 @@ def job_wait_completion(cls, job_id, timeout=10, polling_period=0.5, job_type='j
job_id, url, rv.status_code)
assert job_id in rv.data
return status
assert (time.time() - start) < timeout, 'Job took more than %s seconds' % timeout
time.sleep(polling_period)

@classmethod
Expand Down