mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-27 02:02:53 +01:00
In this commit, we alter our mock heuristic to also take in a quit chan. It's possible that at the end of a test the agent is blocked on a NeedMoreChans/Select call as their mock implementations use channels. To prevent this, we use the agent's quit chan so that the heuristic can safely exit once the agent does.