Skip to content

Fix transient failure of deployment query spec

Are there points in the code the reviewer needs to double check?

I've looked into few avenues and the only thing that comes to my mind is that different deployments with the same id's are returned. One for Rspec context and other for Sidekiq job. They seem to only differ with creation time.

I've mocked find_by that sidekiq based query uses to make sure I return the same instance that is used in rspec.

Why was this MR needed?

Transient failures

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #32231 (closed)

Merge request reports