Clean test runner up (#8485)

* bump scale-codec in test runner

* refactor config

* Update test-utils/test-runner/Cargo.toml

Co-authored-by: Andronik Ordian <write@reusable.software>

* bump cargo.lock

* add reasonable defaults

Co-authored-by: Andronik Ordian <write@reusable.software>
This commit is contained in:
Seun Lanlege
2021-04-07 13:54:31 +01:00
committed by GitHub
parent e3c1fe299a
commit 1cb3590f49
7 changed files with 272 additions and 323 deletions
+5 -1
View File
@@ -228,7 +228,7 @@
use manual_seal::consensus::ConsensusDataProvider;
use sc_executor::NativeExecutionDispatch;
use sc_service::{Configuration, TFullBackend, TFullClient, TaskManager};
use sc_service::{Configuration, TFullBackend, TFullClient, TaskManager, TaskExecutor};
use sp_api::{ConstructRuntimeApi, TransactionFor};
use sp_consensus::{BlockImport, SelectChain};
use sp_inherents::InherentDataProviders;
@@ -242,6 +242,7 @@ mod host_functions;
pub use host_functions::*;
pub use node::*;
pub use utils::*;
/// Wrapper trait for concrete type required by this testing framework.
pub trait ChainInfo: Sized {
@@ -279,6 +280,9 @@ pub trait ChainInfo: Sized {
/// Signed extras, this function is caled in an externalities provided environment.
fn signed_extras(from: <Self::Runtime as frame_system::Config>::AccountId) -> Self::SignedExtras;
/// config factory
fn config(task_executor: TaskExecutor) -> Configuration;
/// Attempt to create client parts, including block import,
/// select chain strategy and consensus data provider.
fn create_client_parts(