Author | SHA1 | Message | Date |
---|---|---|---|
William Banfield |
f70396c6fd
|
add and run make target for generating existing mocks (#6732)
There are many `//go:generate mockery` lines in the source code. This change adds a make target to invoke these mock generations. This change also invokes the mock invocations and adds the resulting mocks to the repo. Related to #5274 |
3 years ago |
Sam Kleinman |
9ffa7e8a2b
|
types: move NodeInfo from p2p (#6618) | 3 years ago |
Sam Kleinman |
a855f96946
|
p2p: renames for reactors and routing layer internal moves (#6547) | 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 |