mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-29 20:47:25 +00:00
f2d7b6f5ac
* Make `AllSubsystems` usage easier in tests This makes the usage of `AllSubsystems` easier in tests by introducing new methods. - `dummy` initializes `AllSubsystems` with all systems set to dummy - `replace_*` to replace any subsystem Besides that this pr adds a `ForwardSubsystem` that is also useful for tests. This subsystem will forward all incoming messages to the given channel. * Update node/overseer/src/lib.rs Co-authored-by: Andronik Ordian <write@reusable.software> * Update node/subsystem/src/lib.rs Co-authored-by: Andronik Ordian <write@reusable.software> * Update node/subsystem/src/lib.rs Co-authored-by: Andronik Ordian <write@reusable.software> * Move ForwardSubsystem and add a test * Break some lines Co-authored-by: Andronik Ordian <write@reusable.software>
28 lines
921 B
TOML
28 lines
921 B
TOML
[package]
|
|
name = "polkadot-node-subsystem-test-helpers"
|
|
version = "0.1.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2018"
|
|
description = "Subsystem traits and message definitions"
|
|
|
|
[dependencies]
|
|
async-trait = "0.1"
|
|
derive_more = "0.99.9"
|
|
futures = "0.3.5"
|
|
futures-timer = "3.0.2"
|
|
log = "0.4.8"
|
|
parity-scale-codec = "1.3.4"
|
|
parking_lot = "0.10.0"
|
|
pin-project = "0.4.23"
|
|
polkadot-node-primitives = { path = "../primitives" }
|
|
polkadot-node-subsystem = { path = "../subsystem" }
|
|
polkadot-node-subsystem-util = { path = "../subsystem-util" }
|
|
polkadot-primitives = { path = "../../primitives" }
|
|
polkadot-statement-table = { path = "../../statement-table" }
|
|
sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
smallvec = "1.4.1"
|
|
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
|
|
[dev-dependencies]
|
|
polkadot-overseer = { path = "../overseer" }
|