Commit bec7d22d authored by Yorick Peterse's avatar Yorick Peterse

Fixed flaky EE specific Ci::Pipeline test

This test would expect pipelines to be returned in a particular order,
without actually ordering the rows. This could lead to the test
sometimes failing. To solve this, we use `to include` instead of `to
eq`.
parent f269d4a3
......@@ -36,7 +36,7 @@ describe Ci::Pipeline do
end
it "returns pipeline with security reports" do
expect(described_class.with_legacy_security_reports).to eq([pipeline_1, pipeline_2, pipeline_3, pipeline_4])
expect(described_class.with_legacy_security_reports).to contain_exactly(pipeline_1, pipeline_2, pipeline_3, pipeline_4)
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