Commit 6700d501 authored by David Mendez's avatar David Mendez
Browse files

Functional tests: make tests fail if delayed job errors

parent 0a963eeb
......@@ -3,6 +3,7 @@ Module with utils functions for the tests
"""
import json
import time
import sys
import requests
......@@ -167,6 +168,9 @@ def wait_until_job_finished(delayed_jobs_server_base_path, job_id):
print('job_status: ', job_status)
print('job_progress: ', job_progress)
if job_status == 'ERROR':
print('job failed!')
sys.exit(1)
time.sleep(1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment