Node tests crate (#6972)

This commit is contained in:
Luca Provini
2024-03-06 13:05:15 +01:00
committed by GitHub
parent f5be92573c
commit 9226488b3a
6 changed files with 133 additions and 3 deletions

View File

@ -25,7 +25,7 @@ async fn main() -> eyre::Result<()> {
.with_rpc(RpcServerArgs::default().with_http())
.with_chain(custom_chain());
let NodeHandle { mut node, node_exit_future } = NodeBuilder::new(node_config)
let NodeHandle { mut node, node_exit_future: _ } = NodeBuilder::new(node_config)
.testing_node(tasks.executor())
.node(EthereumNode::default())
.launch()
@ -50,8 +50,7 @@ async fn main() -> eyre::Result<()> {
let tx = head.tip().transactions().next().unwrap();
assert_eq!(tx.hash(), hash);
println!("mined transaction: {hash}");
node_exit_future.await
Ok(())
}
fn custom_chain() -> Arc<ChainSpec> {