From a2d19dbcbc2a2a66c0e45babaf2f7e299c7a1ee9 Mon Sep 17 00:00:00 2001 From: Andrew Kroh Date: Mon, 24 Aug 2015 01:09:29 -0400 Subject: [PATCH] Correcting documentation in DNS plugin test code. --- protos/dns/dns_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/protos/dns/dns_test.go b/protos/dns/dns_test.go index 109e5ba963de..8888e21ba234 100644 --- a/protos/dns/dns_test.go +++ b/protos/dns/dns_test.go @@ -369,7 +369,7 @@ func BenchmarkUdpSophosTxt(b *testing.B) { benchmarkUdp(b, sophosTxt) } // Benchmark that runs with parallelism to help find concurrency related // issues. To run with parallelism, the 'go test' cpu flag must be set -// greater than 1, otherwise it just run concurrently but on in parallel. +// greater than 1, otherwise it just runs concurrently but not in parallel. func BenchmarkParallelParse(b *testing.B) { rand.Seed(22) numMessages := len(messages) @@ -401,9 +401,7 @@ func BenchmarkParallelParse(b *testing.B) { } }) - defer func() { - close(dns.results) - }() + defer close(dns.results) } // parseUdpRequestResponse parses a request then a response packet and validates