Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into non-final-read-state
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 committed Jul 8, 2024
2 parents 92db104 + 2419e8a commit 0e25311
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions zebrad/tests/common/regtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ use zebra_rpc::{
},
hex_data::HexData,
},
server::OPENED_RPC_ENDPOINT_MSG,
};
use zebra_test::args;

use crate::common::{
config::{random_known_rpc_port_config, testdir},
config::{os_assigned_rpc_port_config, read_listen_addr_from_logs, testdir},
launch::ZebradTestDirExt,
};

Expand All @@ -43,14 +44,15 @@ pub(crate) async fn submit_blocks_test() -> Result<()> {
info!("starting regtest submit_blocks test");

let network = Network::new_regtest(None);
let mut config = random_known_rpc_port_config(false, &network)?;
let mut config = os_assigned_rpc_port_config(false, &network)?;
config.mempool.debug_enable_at_height = Some(0);
let rpc_address = config.rpc.listen_addr.unwrap();

let mut zebrad = testdir()?
.with_config(&mut config)?
.spawn_child(args!["start"])?;

let rpc_address = read_listen_addr_from_logs(&mut zebrad, OPENED_RPC_ENDPOINT_MSG)?;

info!("waiting for zebrad to start");

tokio::time::sleep(Duration::from_secs(30)).await;
Expand Down

0 comments on commit 0e25311

Please sign in to comment.