Commit 2c06cf98 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Fix tests. We cannot reload unless it's already saved:

Not sure if this is the right fix...
Or maybe we should actually merge:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5782
parent 9fdcbcb0
......@@ -93,7 +93,10 @@ module Ci
def error(message, save: false)
pipeline.errors.add(:base, message)
pipeline.reload_status! if save
if save
pipeline.save
pipeline.reload_status!
end
pipeline
end
end
......
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