Skip to content

Commit

Permalink
More fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Lewi committed Nov 6, 2019
1 parent 5025bec commit 626369e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xgboost_synthetic/testing/xgboost_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ def test_xgboost_synthetic(record_xml_attribute, name, namespace, # pylint: disa

logging.info("Final job:\n%s", yaml.safe_dump(final_job.to_dict()))

if not job.status.conditions:
if not final_job.status.conditions:
raise RuntimeError("Job {0}.{1}; did not complete".format(namespace, name))

last_condition = job.status.conditions[-1]
last_condition = final_job.status.conditions[-1]

if last_condition.type not in ["Complete"]:
logging.error("Job didn't complete successfully")
Expand Down

0 comments on commit 626369e

Please sign in to comment.