Skip to content

Commit

Permalink
tests(ethexe): run anvil node in block mining mode (#4070)
Browse files Browse the repository at this point in the history
  • Loading branch information
StackOverflowExcept1on authored Jul 19, 2024
1 parent f49616a commit 379152c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ethexe/cli/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ impl TestEnv {
async fn ping() {
gear_utils::init_default_logger();

let anvil = Anvil::new().try_spawn().unwrap();
let mut anvil = Anvil::new().block_time(1).try_spawn().unwrap();
drop(anvil.child_mut().stdout.take()); //temp fix for alloy#1078

let mut env = TestEnv::new(anvil.ws_endpoint()).await.unwrap();
let mut listener = env.new_listener();
Expand Down
4 changes: 3 additions & 1 deletion ethexe/observer/src/observer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,9 @@ mod tests {
async fn test_deployment() -> Result<()> {
gear_utils::init_default_logger();

let anvil = Anvil::new().try_spawn()?;
let mut anvil = Anvil::new().block_time(1).try_spawn()?;
drop(anvil.child_mut().stdout.take()); //temp fix for alloy#1078

let ethereum_rpc = anvil.ws_endpoint();

let signer = Signer::new("/tmp/keys".into())?;
Expand Down

0 comments on commit 379152c

Please sign in to comment.