From 04466616d5bd678774073c80d6e3899a1ce61dd8 Mon Sep 17 00:00:00 2001 From: vladilen11 Date: Sun, 7 Jul 2024 22:58:38 +0800 Subject: [PATCH] fix sui-test-validator bug --- crates/sui-cluster-test/src/cluster.rs | 2 +- crates/sui-test-validator/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/sui-cluster-test/src/cluster.rs b/crates/sui-cluster-test/src/cluster.rs index 44271a8e0ca5b..b98f000671ced 100644 --- a/crates/sui-cluster-test/src/cluster.rs +++ b/crates/sui-cluster-test/src/cluster.rs @@ -166,8 +166,8 @@ impl LocalNewCluster { #[async_trait] impl Cluster for LocalNewCluster { async fn start(options: &ClusterTestOpt) -> Result { - let fullnode_address = options.fullnode_address.as_ref().map(|addr| { let data_ingestion_path = tempdir()?.into_path(); + let fullnode_address = options.fullnode_address.as_ref().map(|addr| { addr.parse::() .expect("Unable to parse fullnode address") }); diff --git a/crates/sui-test-validator/src/main.rs b/crates/sui-test-validator/src/main.rs index f8da09c76a966..badf10f3ee653 100644 --- a/crates/sui-test-validator/src/main.rs +++ b/crates/sui-test-validator/src/main.rs @@ -129,7 +129,7 @@ async fn main() -> Result<()> { pg_address: with_indexer.then_some(format!( "postgres://{pg_user}:{pg_password}@{pg_host}:{pg_port}/{pg_db_name}" )), - faucet_address: Some(format!("127.0.0.1:{}", faucet_port)), + faucet_address: Some(format!("{}", faucet_addr)), epoch_duration_ms, config_dir, graphql_address: graphql_port.map(|p| format!("{}:{}", graphql_host, p)),