Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Salka1988 committed Oct 8, 2023
1 parent d7b21ab commit cafd3dc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions packages/fuels-test-helpers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions packages/fuels-test-helpers/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pub struct FuelService {
}

impl FuelService {
#[allow(clippy::useless_conversion)]
pub async fn start(config: Config) -> Result<Self> {
let service = FService::new_node(config.into())
.await
Expand Down
2 changes: 1 addition & 1 deletion packages/fuels/tests/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit cafd3dc

Please sign in to comment.