mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
done := make(chan error)
|
done := make(chan error, 1)
|
||||||
go func() {
|
go func() {
|
||||||
done <- prom.Wait()
|
done <- prom.Wait()
|
||||||
}()
|
}()
|
||||||
|
|
Loading…
Reference in a new issue