Commit 09873829 authored by Patrick Bajao's avatar Patrick Bajao

Merge branch 'caalberts-fix-flaky-job-artifact-spec' into 'master'

Fix order-dependent array assertion

See merge request gitlab-org/gitlab!43820
parents 6ba3050f dc2d9213
...@@ -44,7 +44,7 @@ RSpec.describe Ci::JobArtifact do ...@@ -44,7 +44,7 @@ RSpec.describe Ci::JobArtifact do
let!(:metrics_report) { create(:ci_job_artifact, :junit) } let!(:metrics_report) { create(:ci_job_artifact, :junit) }
let!(:codequality_report) { create(:ci_job_artifact, :codequality) } let!(:codequality_report) { create(:ci_job_artifact, :codequality) }
it { is_expected.to eq([metrics_report, codequality_report]) } it { is_expected.to match_array([metrics_report, codequality_report]) }
end end
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