Fix nil pipeline status error
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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #328188 (closed)