Commit e07e69c1 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch 'caalberts-fix-flaky-lazy-user-notes-count-aggregate-spec' into 'master'

Fix flaky set comparison

See merge request gitlab-org/gitlab!43829
parents 915ac9c6 db4598f5
......@@ -20,7 +20,7 @@ RSpec.describe Gitlab::Graphql::Aggregations::Vulnerabilities::LazyUserNotesCoun
it 'uses lazy_user_notes_count_aggregate to collect aggregates' do
subject = described_class.new({ lazy_user_notes_count_aggregate: { pending_vulnerability_ids: [10, 20, 30].to_set, loaded_objects: {} } }, vulnerability)
expect(subject.lazy_state[:pending_vulnerability_ids]).to match [10, 20, 30, vulnerability.id]
expect(subject.lazy_state[:pending_vulnerability_ids]).to match_array [10, 20, 30, vulnerability.id]
expect(subject.vulnerability).to match vulnerability
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