fix potential goroutine leaks in TestTxnPanics
parent
29292aa7bd
commit
d1194977eb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue