Skip to content

Fix nil pipeline status error

Tiffany Rea requested to merge 328188-fix-nil-pipeline-status-error into master

What does this MR do and why?

Describe in detail what your merge request does and why.

Sometimes there is latency in pipeline creation that results in

Failure/Error: new_pipeline[:status] == 'success' && downstream_project.pipelines.size == 2

NoMethodError:
  undefined method `[]' for nil:NilClass

Updating test to wait until pipeline response is not nil first then check for status.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #328188 (closed)

Merge request reports