Refactor service tests in `sc-network` (#12517)
* Refactor service tests in `sc-network` Create a separate directory for the tests and move common network instantion related code to `mod.rs` from where it can be used by both service and chainsync tests. Use the builder pattern when creating the `TestNetwork` object to reduce code duplication between the test files. * Update client/network/src/service/tests/mod.rs Co-authored-by:Dmitrii Markin <dmitry@markin.tech> Co-authored-by:
Dmitrii Markin <dmitry@markin.tech> Co-authored-by: parity-processbot <>
Showing
- substrate/client/network/src/service.rs 0 additions, 2 deletionssubstrate/client/network/src/service.rs
- substrate/client/network/src/service/tests/chain_sync.rs 28 additions, 177 deletionssubstrate/client/network/src/service/tests/chain_sync.rs
- substrate/client/network/src/service/tests/mod.rs 297 additions, 0 deletionssubstrate/client/network/src/service/tests/mod.rs
- substrate/client/network/src/service/tests/service.rs 175 additions, 336 deletionssubstrate/client/network/src/service/tests/service.rs
Please register or sign in to comment