mirror of
https://github.com/prometheus/prometheus
synced 2024-12-23 15:04:13 +00: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 New Issue
Block a user