substrate
substrate copied to clipboard
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.
These changes are introduced in a separate PR in order to prevent cluttering future PRs with too many testing-related changes.