fix potential goroutine leaks in TestTxnPanics

dependabot/go_modules/go.uber.org/atomic-1.10.0
Linhai 2021-12-15 01:22:56 -05:00
parent 29292aa7bd
commit d1194977eb
1 changed files with 1 additions and 1 deletions

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)