substrate icon indicating copy to clipboard operation
substrate copied to clipboard

Refactor service tests in `sc-network`

Open altonen opened this issue 3 years ago • 0 comments

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.

altonen avatar Oct 18 '22 11:10 altonen