mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-18 10:29:43 +00:00
Use http.NoBody as per linter (#231)
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/231 Reviewed-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
parent
7f318f89a6
commit
d720d25e42
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
package handler
|
package handler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"net/http"
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
@ -26,7 +27,7 @@ func TestHandlerPerformance(t *testing.T) {
|
||||||
|
|
||||||
testCase := func(uri string, status int) {
|
testCase := func(uri string, status int) {
|
||||||
t.Run(uri, func(t *testing.T) {
|
t.Run(uri, func(t *testing.T) {
|
||||||
req := httptest.NewRequest("GET", uri, nil)
|
req := httptest.NewRequest("GET", uri, http.NoBody)
|
||||||
w := httptest.NewRecorder()
|
w := httptest.NewRecorder()
|
||||||
|
|
||||||
log.Printf("Start: %v\n", time.Now())
|
log.Printf("Start: %v\n", time.Now())
|
||||||
|
|
Loading…
Reference in a new issue