mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
fix potential goroutine leaks in TestTxnPanics
This commit is contained in:
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…
x
Reference in New Issue
Block a user