Failure in ee/spec/finders/security/approval_groups_finder_spec.rb | Security::ApprovalGroupsFinder#execute with inaccessible groups excluded authorization excludes groups the user lacks access to

Test metadata (don't modify)

Field Value
File ee/spec/finders/security/approval_groups_finder_spec.rb#L81
Description Security::ApprovalGroupsFinder#execute with inaccessible groups excluded authorization excludes groups the user lacks access to
Test level unit
Hash d8b1b9dea2baa90e79d70f0ad61a17cc7995dca26c725dba8a4cfc32b43fbd12
Duration 2.34 seconds
Expected duration < 45.4 seconds

Stack trace

Failure/Error: expect(subject).to contain_exactly(group_b)

  expected collection contained:  [#<Group id:4036 @group327/voluptatum>]
  actual collection contained:    [#<Group id:4034 @group326/voluptatum>, #<Group id:4036 @group327/voluptatum>]
  the extra elements were:        [#<Group id:4034 @group326/voluptatum>]

Reports (1)

  1. 2023-08-10: https://gitlab.com/gitlab-org/gitlab/-/jobs/4843642564 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/962313664)