mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
When the context closes, the stats emitter closes its channel. It's possible for the channel to be closed in the stats emitter goroutine before the `select` in the test sees that the context has closed, which can result in a panic in the test when we try to read the empty value off the channel.