test: add buffer to channel to avoid goroutine leak (#8274)

Signed-off-by: lzhfromustc <lzhfromustc@gmail.com>
This commit is contained in:
lzhfromustc 2020-12-10 04:09:21 -05:00 committed by GitHub
parent 66f47e116e
commit 27a6e1e174
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ func TestStartupInterrupt(t *testing.T) {
return
}
done := make(chan error)
done := make(chan error, 1)
go func() {
done <- prom.Wait()
}()