substrate test runner

This commit is contained in:
Seun
2020-07-31 16:54:18 +01:00
parent d3e7bd2282
commit 301684bf70
9 changed files with 195 additions and 217 deletions
+3 -3
View File
@@ -17,10 +17,10 @@ futures = { version = "0.3.5", features = ["compat"] }
futures01 = { package = "futures", version = "0.1.29" }
jsonrpsee = "0.1.0"
log = "0.4.11"
sc-network = { version = "0.8.0-rc5", default-features = false }
sc-service = { version = "0.8.0-rc5", default-features = false }
sc-network = { git = "https://github.com/paritytech/substrate.git", branch = "seun-substrate-test-runner", default-features = false }
sc-service = { git = "https://github.com/paritytech/substrate.git", branch = "seun-substrate-test-runner", default-features = false }
serde_json = "1.0.56"
sp-keyring = "2.0.0-rc5"
sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "seun-substrate-test-runner" }
thiserror = "1.0.20"
[dev-dependencies]
+18 -3
View File
@@ -314,7 +314,8 @@ mod tests {
ClientBuilder,
KusamaRuntime as NodeTemplateRuntime,
PairSigner,
};
};
use std::sync::Arc;
use tempdir::TempDir;
#[async_std::test]
@@ -360,7 +361,14 @@ mod tests {
};
let client = ClientBuilder::<NodeTemplateRuntime>::new()
.set_client(
SubxtClient::from_config(config, test_node::service::new_light).unwrap(),
SubxtClient::from_config(
config,
|config| {
test_node::service::new_light(config)
.map(|(task, rpc)| (task, Arc::new(rpc)))
},
)
.expect("Error creating subxt client"),
)
.build()
.await
@@ -393,7 +401,14 @@ mod tests {
};
let client = ClientBuilder::<NodeTemplateRuntime>::new()
.set_client(
SubxtClient::from_config(config, test_node::service::new_full).unwrap(),
SubxtClient::from_config(
config,
|config| {
test_node::service::new_full(config)
.map(|(task, rpc)| (task, Arc::new(rpc)))
},
)
.expect("Error creating subxt client"),
)
.build()
.await