Skip to content

Commit

Permalink
fix tests for RC usage metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
blotus committed Nov 12, 2024
1 parent 043d225 commit b2e46c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/apiserver/alerts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ func (l *LAPI) RecordResponse(t *testing.T, ctx context.Context, verb string, ur
t.Fatal("auth type not supported")
}

// Port is required for gin to properly parse the client IP
req.RemoteAddr = "127.0.0.1:1234"

l.router.ServeHTTP(w, req)

return w
Expand Down

0 comments on commit b2e46c9

Please sign in to comment.