From cafd3dc9f943b6f82aae851e4a56465cf04af8c2 Mon Sep 17 00:00:00 2001 From: Emir Salkic Date: Sun, 8 Oct 2023 16:54:11 +0200 Subject: [PATCH] refactoring --- packages/fuels-test-helpers/src/lib.rs | 4 ---- packages/fuels-test-helpers/src/service.rs | 1 + packages/fuels/tests/contracts.rs | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/fuels-test-helpers/src/lib.rs b/packages/fuels-test-helpers/src/lib.rs index af318d3d82..f71d54cd6d 100644 --- a/packages/fuels-test-helpers/src/lib.rs +++ b/packages/fuels-test-helpers/src/lib.rs @@ -152,10 +152,6 @@ pub async fn setup_test_provider( let mut config = node_config.unwrap_or_else(Config::local_node); config.chain_conf = chain_conf; - // let srv = FuelService::new_node(config) - // .await - // .map_err(|err| error!(InfrastructureError, "{err}"))?; - let srv = service::FuelService::start(config).await?; let address = srv.bound_address(); diff --git a/packages/fuels-test-helpers/src/service.rs b/packages/fuels-test-helpers/src/service.rs index a6bc30c2a2..2da5e62e43 100644 --- a/packages/fuels-test-helpers/src/service.rs +++ b/packages/fuels-test-helpers/src/service.rs @@ -15,6 +15,7 @@ pub struct FuelService { } impl FuelService { + #[allow(clippy::useless_conversion)] pub async fn start(config: Config) -> Result { let service = FService::new_node(config.into()) .await diff --git a/packages/fuels/tests/contracts.rs b/packages/fuels/tests/contracts.rs index bc9993993c..55d45b7845 100644 --- a/packages/fuels/tests/contracts.rs +++ b/packages/fuels/tests/contracts.rs @@ -1683,7 +1683,7 @@ async fn bla_bla() -> Result<()> { let service = FuelService::start(config).await?; - let provider = Provider::connect(service.bound_address().to_string()).await?; + let _ = Provider::connect(service.bound_address().to_string()).await?; dbg!(service.state()); service.stop().await.unwrap();