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
+10 -2
View File
@@ -468,7 +468,9 @@ mod tests {
SubxtClient,
SubxtClientConfig,
};
use tempdir::TempDir;
use tempdir::TempDir;
use std::sync::Arc;
pub(crate) type TestRuntime = crate::NodeTemplateRuntime;
@@ -496,7 +498,13 @@ mod tests {
};
let client = ClientBuilder::new()
.set_client(
SubxtClient::from_config(config, test_node::service::new_full)
SubxtClient::from_config(
config,
|config| {
test_node::service::new_full(config)
.map(|(task, rpc)| (task, Arc::new(rpc)))
},
)
.expect("Error creating subxt client"),
)
.build()