Skip to content

Commit

Permalink
Remove duplicate setupRequest function in metricsforwarder server tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bonzofenix committed Oct 31, 2024
1 parent 3876c86 commit 0f08e76
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/autoscaler/metricsforwarder/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,6 @@ func setupRequest(method string, url *url.URL, body []byte) (*http.Request, erro
return req, nil
}


// Helper function to set up a new client and request
func setupRequest(method, url, authHeader string, body []byte) (*http.Client, *http.Request, error) {
client := &http.Client{}
req, err := newRequest(method, url, body)
if err != nil {
return nil, nil, err
}
if authHeader != "" {
req.Header.Add("Authorization", authHeader)
}
return client, req, nil
}

var _ = Describe("CustomMetricsConfig Server", func() {

var (
Expand Down

0 comments on commit 0f08e76

Please sign in to comment.