Fix flaky/broken spec job_artifact_spec.rb updates project statistics
What does this MR do and why?
Fix flaky/broken spec job_artifact_spec.rb updates project statistics
This spec in #537932 (closed)
seems to have suddenly started failing consistently. I can reproduce the
problem locally just by running the 2 specs in this context with
bin/rspec spec/models/ci/job_artifact_spec.rb:747
It's not clear to me why this spec would have passed before
considering that let_it_be is clearly not going to work in this
context as both specs are deleting this record. In any case switching to
let reliably fixes the problem for me locally.
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #537932 (closed)