fixing the goroutine leak in TestBackendClose

This commit is contained in:
Linhai 2021-12-15 01:54:51 -05:00
parent d1194977eb
commit 3ebd0a7d00

View File

@ -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 {