Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Address new linter warnings.
  • Loading branch information
gmalouf committed May 8, 2024
commit eef2f24087518a7fd94078b8bbcbca9dd62fb8ee
4 changes: 2 additions & 2 deletions test/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func mockHTTPResponsesInLoadedFromHelper(jsonfiles, directory string, status int
responseRing.Value = json
responseRing = responseRing.Next()
}
mockServer = httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
mockServer = httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
json := responseRing.Value.([]byte)
if status > 0 {
w.WriteHeader(status)
Expand All @@ -67,7 +67,7 @@ var receivedMethod string
var receivedPath string

func mockServerRecordingRequestPaths() error {
mockServer = httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
mockServer = httptest.NewServer(http.HandlerFunc(func(_ http.ResponseWriter, r *http.Request) {
receivedMethod = r.Method
receivedPath = r.URL.String()
}))
Expand Down