mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-04 20:06:12 +02:00
web/api: use http.NoBody instead of nil for request body in test
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
This commit is contained in:
parent
9899ab3706
commit
fa4270f939
@ -4934,7 +4934,7 @@ func (q *fakeQuery) String() string {
|
||||
func TestDeleteSeriesEndpointRemoved(t *testing.T) {
|
||||
api := newTestAPI(t, testhelpers.APIConfig{})
|
||||
|
||||
req := httptest.NewRequest(http.MethodDelete, "/api/v1/series", nil)
|
||||
req := httptest.NewRequest(http.MethodDelete, "/api/v1/series", http.NoBody)
|
||||
recorder := httptest.NewRecorder()
|
||||
api.Handler.ServeHTTP(recorder, req)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user