Skip to content
Commit 7f8aab84 authored by Aaro Altonen's avatar Aaro Altonen Committed by GitHub
Browse files

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: default avatarDmitrii Markin <[email protected]>

Co-authored-by: default avatarDmitrii Markin <[email protected]>
Co-authored-by: parity-processbot <>
parent 48a02bb0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment