use http.NoBody as per linter

This commit is contained in:
6543 2023-07-17 00:38:02 +02:00
parent 7f318f89a6
commit 83d495e587
No known key found for this signature in database
GPG Key ID: B8BE6D610E61C862
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package handler
import (
"net/http"
"net/http/httptest"
"testing"
"time"
@ -26,7 +27,7 @@ func TestHandlerPerformance(t *testing.T) {
testCase := func(uri string, status int) {
t.Run(uri, func(t *testing.T) {
req := httptest.NewRequest("GET", uri, nil)
req := httptest.NewRequest("GET", uri, http.NoBody)
w := httptest.NewRecorder()
log.Printf("Start: %v\n", time.Now())