Commit 32d84d65 authored by Thong Kuah's avatar Thong Kuah

Fix flaky spec due to array returned out of order

Fixes https://gitlab.com/gitlab-org/gitlab/-/issues/333746
parent ea298773
......@@ -20,7 +20,7 @@ RSpec.describe Resolvers::InstanceSecurityDashboard::ProjectsResolver do
end
context 'when provided object is InstanceSecurityDashboard' do
it { is_expected.to eq([project1, project2]) }
it { is_expected.to match_array([project1, project2]) }
end
context 'when object is not provided' do
......
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