mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 19:21:03 +00:00
substrate test runner
This commit is contained in:
+3
-3
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user