Skip to content
Snippets Groups Projects
Commit ce288014 authored by Harsha Kethineni's avatar Harsha Kethineni Committed by Megan Henning
Browse files

indexed logs instead of get()

parent c88d8faa
No related branches found
No related tags found
No related merge requests found
......@@ -325,7 +325,7 @@ def test_jobs(data_builder, default_payload, as_public, as_user, as_admin, as_ro
assert r.json().get('orphaned') == 1
r = as_admin.get('/jobs/'+str(job_instance['_id'])+'/logs')
assert r.ok
assert "The job did not report in for a long time and was canceled." in [log["msg"] for log in r.json().get('logs',[])]
assert "The job did not report in for a long time and was canceled." in [log["msg"] for log in r.json()['logs']]
api_db.jobs.delete_one({"_id": bson.ObjectId("5a007cdb0f352600d94c845f")})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment