-
Notifications
You must be signed in to change notification settings - Fork 424
Closed as not planned
Description
As a developer, I want to reduce the number of dependencies for tests that surround the PeerHolder behavior to gain confidence in the object and reduce development time for future features that interact with it.
Definition of Done:
- Unit tests exist for PeerHolder API
- Optional: PeerHolder is moved to its own file
Tech Discussion:
Refactoring unified a lot of the individual map accesses to a true API in front of the PeerHolder. Aside from code deduplication, one of the benefits was that it can now be tested in isolation.
The tests should be really straight forward using a fake Peer. The only other external dependency is the ChannelHandler callback for disconnect_peer and a spy already exists for this.
Metadata
Metadata
Assignees
Labels
No labels