mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
test: add buffer to channel to avoid goroutine leak (#8274)
Signed-off-by: lzhfromustc <lzhfromustc@gmail.com>
This commit is contained in:
parent
66f47e116e
commit
27a6e1e174
|
@ -37,7 +37,7 @@ func TestStartupInterrupt(t *testing.T) {
|
|||
return
|
||||
}
|
||||
|
||||
done := make(chan error)
|
||||
done := make(chan error, 1)
|
||||
go func() {
|
||||
done <- prom.Wait()
|
||||
}()
|
||||
|
|
Loading…
Reference in a new issue