Commit f554a94f authored by Aleksei Lipniagov's avatar Aleksei Lipniagov

Fix `project_tree_restorer_spec` flakiness

parent 9a714d7f
...@@ -262,7 +262,7 @@ describe Gitlab::ImportExport::ProjectTreeRestorer do ...@@ -262,7 +262,7 @@ describe Gitlab::ImportExport::ProjectTreeRestorer do
it 'has the correct number of pipelines and statuses' do it 'has the correct number of pipelines and statuses' do
expect(@project.ci_pipelines.size).to eq(6) expect(@project.ci_pipelines.size).to eq(6)
@project.ci_pipelines.zip([0, 2, 2, 2, 2, 2]) @project.ci_pipelines.order(:id).zip([2, 2, 2, 2, 2, 0])
.each do |(pipeline, expected_status_size)| .each do |(pipeline, expected_status_size)|
expect(pipeline.statuses.size).to eq(expected_status_size) expect(pipeline.statuses.size).to eq(expected_status_size)
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