Commit 403e1086 authored by Stan Hu's avatar Stan Hu

Fix flaky spec in create_pipeline_service_spec.rb

In https://gitlab.com/gitlab-org/gitlab/-/jobs/398915713, the job
failed because the database returned a different ordering. Fix this
by just matching the array contents.
parent 6e88bebc
......@@ -499,7 +499,7 @@ describe Ci::CreatePipelineService do
it 'pull it from Auto-DevOps' do
pipeline = execute_service
expect(pipeline).to be_auto_devops_source
expect(pipeline.builds.map(&:name)).to eq %w[test code_quality build]
expect(pipeline.builds.map(&:name)).to match_array(%w[test code_quality build])
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