diff --git a/connector/gitlab/gitlab_test.go b/connector/gitlab/gitlab_test.go index a7b86538..92614643 100644 --- a/connector/gitlab/gitlab_test.go +++ b/connector/gitlab/gitlab_test.go @@ -542,11 +542,7 @@ func TestTokenIdentity(t *testing.T) { Name: "Joe Bloggs", Username: "joebloggs", }, - } - - // Only add /oauth/userinfo if we expect groups to be fetched - if tc.groups != nil || tc.getGroupsPermission { - responses["/oauth/userinfo"] = tc.userInfo + "/oauth/userinfo": tc.userInfo, } s := newTestServer(responses)