From 691f8be7850fce1fbbdd12f74ba002c03e8c507e Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Thu, 5 May 2022 15:59:18 +0800 Subject: [PATCH] Fix unparam lint error in oauth_test Signed-off-by: Shuanglei Tao --- connector/oauth/oauth_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/connector/oauth/oauth_test.go b/connector/oauth/oauth_test.go index 91284568..3a5ec6bf 100644 --- a/connector/oauth/oauth_test.go +++ b/connector/oauth/oauth_test.go @@ -84,7 +84,7 @@ func TestHandleCallBackForGroupsInUserInfo(t *testing.T) { defer testServer.Close() conn := newConnector(t, testServer.URL) - req := newRequestWithAuthCode(t, testServer.URL, "some-code") + req := newRequestWithAuthCode(t, testServer.URL, "TestHandleCallBackForGroupsInUserInfo") identity, err := conn.HandleCallback(connector.Scopes{Groups: true}, req) assert.Equal(t, err, nil) @@ -120,7 +120,7 @@ func TestHandleCallBackForGroupMapsInUserInfo(t *testing.T) { defer testServer.Close() conn := newConnector(t, testServer.URL) - req := newRequestWithAuthCode(t, testServer.URL, "some-code") + req := newRequestWithAuthCode(t, testServer.URL, "TestHandleCallBackForGroupMapsInUserInfo") identity, err := conn.HandleCallback(connector.Scopes{Groups: true}, req) assert.Equal(t, err, nil) @@ -154,7 +154,7 @@ func TestHandleCallBackForGroupsInToken(t *testing.T) { defer testServer.Close() conn := newConnector(t, testServer.URL) - req := newRequestWithAuthCode(t, testServer.URL, "some-code") + req := newRequestWithAuthCode(t, testServer.URL, "TestHandleCallBackForGroupsInToken") identity, err := conn.HandleCallback(connector.Scopes{Groups: true}, req) assert.Equal(t, err, nil) @@ -184,7 +184,7 @@ func TestHandleCallbackForNumericUserID(t *testing.T) { defer testServer.Close() conn := newConnector(t, testServer.URL) - req := newRequestWithAuthCode(t, testServer.URL, "some-code") + req := newRequestWithAuthCode(t, testServer.URL, "TestHandleCallbackForNumericUserID") identity, err := conn.HandleCallback(connector.Scopes{Groups: true}, req) assert.Equal(t, err, nil)