run is a dummy goroutine to make sure that child policies are closed at the end of tests. If they are not closed, these goroutines will be picked up by the leak checker and tests will fail.
()
| 127 | // end of tests. If they are not closed, these goroutines will be picked up by |
| 128 | // the leak checker and tests will fail. |
| 129 | func (b *bal) run() { |
| 130 | <-b.done.Done() |
| 131 | } |