aboutsummaryrefslogtreecommitdiff
path: root/client_timing_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'client_timing_test.go')
-rw-r--r--client_timing_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/client_timing_test.go b/client_timing_test.go
index 416ad53..5e9a2f4 100644
--- a/client_timing_test.go
+++ b/client_timing_test.go
@@ -165,7 +165,7 @@ func BenchmarkNetHTTPClientDoFastServer(b *testing.B) {
nn := uint32(0)
b.RunParallel(func(pb *testing.PB) {
- req, err := http.NewRequest(MethodGet, fmt.Sprintf("http://foobar%d.com/aaa/bbb", atomic.AddUint32(&nn, 1)), nil)
+ req, err := http.NewRequest(MethodGet, fmt.Sprintf("http://foobar%d.com/aaa/bbb", atomic.AddUint32(&nn, 1)), http.NoBody)
if err != nil {
b.Fatalf("unexpected error: %v", err)
}
@@ -550,7 +550,7 @@ func benchmarkNetHTTPClientEndToEndBigResponseInmemory(b *testing.B, parallelism
url := "http://unused.host" + requestURI
b.SetParallelism(parallelism)
b.RunParallel(func(pb *testing.PB) {
- req, err := http.NewRequest(MethodGet, url, nil)
+ req, err := http.NewRequest(MethodGet, url, http.NoBody)
if err != nil {
b.Fatalf("unexpected error: %v", err)
}