mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
fixing the goroutine leak in TestBackendClose
This commit is contained in:
parent
d1194977eb
commit
3ebd0a7d00
@ -32,7 +32,7 @@ func TestBackendClose(t *testing.T) {
|
||||
b, _ := betesting.NewTmpBackend(t, time.Hour, 10000)
|
||||
|
||||
// check close could work
|
||||
done := make(chan struct{})
|
||||
done := make(chan struct{}, 1)
|
||||
go func() {
|
||||
err := b.Close()
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user