mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-28 04:02:21 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue