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
Reported by golangci-lint v1.50.1

Signed-off-by: Daniel Lipovetsky <dlipovetsky@d2iq.com>
  • Loading branch information
dlipovetsky committed Jan 18, 2023
1 parent 28bbfcc commit 7dc20c2
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 @@ -31,7 +31,7 @@ var (
callCounter = make(map[string]int)
)

func testSetup(t *testing.T) *httptest.Server {
func testSetup() *httptest.Server {
mux := http.NewServeMux()

mux.HandleFunc("/admin/directory/v1/groups/", func(w http.ResponseWriter, r *http.Request) {
Expand Down Expand Up @@ -78,7 +78,7 @@ func tempServiceAccountKey() (string, error) {
}

func TestOpen(t *testing.T) {
ts := testSetup(t)
ts := testSetup()
defer ts.Close()

type testCase struct {
Expand Down Expand Up @@ -168,7 +168,7 @@ func TestOpen(t *testing.T) {
}

func TestGetGroups(t *testing.T) {
ts := testSetup(t)
ts := testSetup()
defer ts.Close()

serviceAccountFilePath, err := tempServiceAccountKey()
Expand Down

0 comments on commit 7dc20c2

Please sign in to comment.