Author | SHA1 | Message | Date |
---|---|---|---|
Sam Kleinman |
6ab62fe7b6
|
service: remove stop method and use contexts (#7292) | 3 years ago |
Sam Kleinman |
7143f14a63
|
p2p: simplify open channel interface (#7133)
A fourth #7075 component patch to simplify the channel creation interface |
3 years ago |
Sam Kleinman |
ae5f98881b
|
p2p: make NodeID and NetAddress public (#6583) | 3 years ago |
Sam Kleinman |
a855f96946
|
p2p: renames for reactors and routing layer internal moves (#6547) | 4 years ago |
Sam Kleinman |
fce665ef06
|
p2p: fix network update test (#6361) | 4 years ago |
Erik Grinaker |
9b6d6a3ad0
|
p2p: tighten up Router and add tests (#6044)
This cleans up the `Router` code and adds a bunch of tests. These sorts of systems are a real pain to test, since they have a bunch of asynchronous goroutines living their own lives, so the test coverage is decent but not fantastic. Luckily we've been able to move all of the complex peer management and transport logic outside of the router, as synchronous components that are much easier to test, so the core router logic is fairly small and simple. This also provides some initial test tooling in `p2p/p2ptest` that automatically sets up in-memory networks and channels for use in integration tests. It also includes channel-oriented test asserters in `p2p/p2ptest/require.go`, but these have primarily been written for router testing and should probably be adapted or extended for reactor testing. |
4 years ago |