Browse Source

Fix oauth endpoint test comment

Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
pull/4606/head
maksim.nabokikh 2 weeks ago
parent
commit
dd2891d890
  1. 6
      connector/gitlab/gitlab_test.go

6
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)

Loading…
Cancel
Save