Skip to content

Commit

Permalink
Correcting documentation in DNS plugin test code.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkroh committed Aug 24, 2015
1 parent e4c3cfc commit a2d19db
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions protos/dns/dns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a2d19db

Please sign in to comment.