Skip to content

Commit

Permalink
Fix NetHTTPServerGet benchmarks
Browse files Browse the repository at this point in the history
Fixes #742
  • Loading branch information
erikdubbelboer committed Feb 11, 2020
1 parent b8803fe commit 021c821
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server_timing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}{}
}()

Expand Down

0 comments on commit 021c821

Please sign in to comment.