Skip to content

Commit

Permalink
fix: connector/google: Remove unused parameter from test helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
dlipovetsky committed Jan 18, 2023
1 parent 3d01e79 commit 8e267fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions connector/google/google_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func testSetup() *httptest.Server {
return httptest.NewServer(mux)
}

func newConnector(config *Config, serverURL string) (*googleConnector, error) {
func newConnector(config *Config) (*googleConnector, error) {
log := logrus.New()
conn, err := config.Open("id", log)
if err != nil {
Expand Down Expand Up @@ -155,7 +155,7 @@ func TestOpen(t *testing.T) {
assert := assert.New(t)

os.Setenv("GOOGLE_APPLICATION_CREDENTIALS", reference.adc)
conn, err := newConnector(reference.config, ts.URL)
conn, err := newConnector(reference.config)

if reference.expectedErr == "" {
assert.Nil(err)
Expand All @@ -181,7 +181,7 @@ func TestGetGroups(t *testing.T) {
RedirectURI: ts.URL + "/callback",
Scopes: []string{"openid", "groups"},
AdminEmail: "admin@dexidp.com",
}, ts.URL)
})
assert.Nil(t, err)

conn.adminSrv, err = admin.NewService(context.Background(), option.WithoutAuthentication(), option.WithEndpoint(ts.URL))
Expand Down

0 comments on commit 8e267fc

Please sign in to comment.