aboutsummaryrefslogtreecommitdiff
path: root/server_timing_test.go
diff options
context:
space:
mode:
authorGravatar Erik Dubbelboer <erik@dubbelboer.com> 2020-02-11 19:19:59 +0100
committerGravatar Erik Dubbelboer <erik@dubbelboer.com> 2020-02-11 19:19:59 +0100
commit021c821992b6d3e26b2db87ec1bbc80882891e39 (patch)
tree6f1bb44c5035b3e7a6444114856220f8a281a224 /server_timing_test.go
parentincrease correctness of open conn count (#738) (diff)
downloadfasthttp-021c821992b6d3e26b2db87ec1bbc80882891e39.tar.gz
fasthttp-021c821992b6d3e26b2db87ec1bbc80882891e39.tar.bz2
fasthttp-021c821992b6d3e26b2db87ec1bbc80882891e39.zip
Fix NetHTTPServerGet benchmarks
Fixes https://github.com/valyala/fasthttp/issues/742
Diffstat (limited to 'server_timing_test.go')
-rw-r--r--server_timing_test.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/server_timing_test.go b/server_timing_test.go
index 4c6be4a..6ed1cae 100644
--- a/server_timing_test.go
+++ b/server_timing_test.go
@@ -447,9 +447,7 @@ func benchmarkServer(b *testing.B, s realServer, clientsCount, requestsPerConn i
ln := newFakeListener(b.N, clientsCount, requestsPerConn, request)
ch := make(chan struct{})
go func() {
- if err := s.Serve(ln); err != nil {
- panic(err)
- }
+ s.Serve(ln) //nolint:errcheck
ch <- struct{}{}
}()