go/src/log
Bryan C. Mills 6328e445c3 log: avoid leaking goroutines in TestOutputRace
Leaked goroutines are the only explanation I can think of for excess
allocs in TestDiscard, and TestOutputRace is the only place I can see
where the log package leaks goroutines. Let's fix that leak and see if
it eliminates the TestDiscard flakes.

Fixes #58797 (maybe).

Change-Id: I2d54dcba3eb52bd10a62cd1c380131add6a2f651
Reviewed-on: https://go-review.googlesource.com/c/go/+/487356
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2023-04-21 20:04:37 +00:00
..
internal log,log/slog: get correct source line when slog calls log 2023-04-12 18:33:50 +00:00
slog log/slog: add Source type for source location 2023-04-20 17:36:42 +00:00
syslog log/syslog: report hostname mismatch error details 2023-04-12 16:09:24 +00:00
example_test.go
log.go log,log/slog: get correct source line when slog calls log 2023-04-12 18:33:50 +00:00
log_test.go log: avoid leaking goroutines in TestOutputRace 2023-04-21 20:04:37 +00:00