Commit a86949fb authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch 'fix-flaky-iteration-spec' into 'master'

Fix flaky spec due to undeterministic DB order

See merge request gitlab-org/gitlab!37818
parents 9b696278 562da3de
......@@ -152,7 +152,7 @@ RSpec.describe Issue do
describe '.any_iteration' do
it 'returns only issues with an iteration assigned' do
expect(described_class.count).to eq 3
expect(described_class.any_iteration).to eq [iteration1_issue, iteration2_issue]
expect(described_class.any_iteration).to contain_exactly(iteration1_issue, iteration2_issue)
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