Commit bb18b759 authored by Nick Thomas's avatar Nick Thomas

Merge branch '31427-flaky-spec-finders-members_finder_spec-rb-85' into 'master'

Resolve "Flaky spec/finders/members_finder_spec.rb:85"

Closes #31427

See merge request gitlab-org/gitlab!18257
parents e96d6f7f 61986ceb
---
title: Fix Flaky spec/finders/members_finder_spec.rb:85
merge_request: 18257
author: Jacopo Beschi @jacopo-beschi
type: fixed
......@@ -86,10 +86,8 @@ describe MembersFinder, '#execute' do
create(:project_group_link, project: project, group: nested_linked_group, group_access: Gitlab::Access::REPORTER)
nested_linked_group.add_developer(user1)
result = subject
expect(result).to contain_exactly(linked_group_member, nested_linked_group_member)
expect(result.first.access_level).to eq(Gitlab::Access::REPORTER)
expect(subject.map(&:user)).to contain_exactly(user1, user2)
expect(subject.max_by(&:access_level).access_level).to eq(Gitlab::Access::REPORTER)
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