Commit d89e81b0 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch '35323-fix-project-tree-restorer-flaky-spec' into 'master'

Fix `project_tree_restorer_spec` flakiness

Closes #35323

See merge request gitlab-org/gitlab!19427
parents 35d98e80 f554a94f
......@@ -262,7 +262,7 @@ describe Gitlab::ImportExport::ProjectTreeRestorer do
it 'has the correct number of pipelines and statuses' do
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)|
expect(pipeline.statuses.size).to eq(expected_status_size)
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