fix potential goroutine leaks in TestTxnPanics

This commit is contained in:
Linhai 2021-12-15 01:22:56 -05:00
parent 29292aa7bd
commit d1194977eb

View File

@ -27,7 +27,7 @@ func TestTxnPanics(t *testing.T) {
kv := &kv{}
errc := make(chan string, 1)
errc := make(chan string, 6)
df := func() {
if s := recover(); s != nil {
errc <- s.(string)