Commit 35beab7d authored by Peter Leitzen's avatar Peter Leitzen

Merge branch '343862-fix-random-test-failure' into 'master'

Fix random spec failures due to non-deterministic order

See merge request gitlab-org/gitlab!73235
parents 2997190b dc65400a
...@@ -1219,7 +1219,7 @@ RSpec.describe Issue do ...@@ -1219,7 +1219,7 @@ RSpec.describe Issue do
end end
it 'returns public and hidden issues' do it 'returns public and hidden issues' do
expect(described_class.public_only).to eq([public_issue, hidden_issue]) expect(described_class.public_only).to contain_exactly(public_issue, hidden_issue)
end end
end end
end end
...@@ -1248,7 +1248,7 @@ RSpec.describe Issue do ...@@ -1248,7 +1248,7 @@ RSpec.describe Issue do
end end
it 'returns public and hidden issues' do it 'returns public and hidden issues' do
expect(described_class.without_hidden).to eq([public_issue, hidden_issue]) expect(described_class.without_hidden).to contain_exactly(public_issue, hidden_issue)
end end
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