Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
fix: update fuel-node fixture (#694)
Browse files Browse the repository at this point in the history
Co-authored-by: Rashad Alston <[email protected]>
  • Loading branch information
ra0x3 and Rashad Alston authored Mar 23, 2023
1 parent d1a702f commit c29e82a
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions packages/fuel-indexer-tests/src/fixtures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,12 @@ pub async fn setup_test_fuel_node(
DEFAULT_COIN_AMOUNT,
);

let addr = host_str
.map(|x| x.parse::<SocketAddr>())
.unwrap_or_else(|| {
Ok(derive_socket_addr(
defaults::FUEL_NODE_HOST,
defaults::FUEL_NODE_PORT,
))
})
.unwrap();
let addr = match host_str {
Some(h) => h.parse::<SocketAddr>().unwrap_or_else(|_| {
derive_socket_addr(defaults::FUEL_NODE_HOST, defaults::FUEL_NODE_PORT)
}),
None => derive_socket_addr(defaults::FUEL_NODE_HOST, defaults::FUEL_NODE_PORT),
};

let config = Config {
utxo_validation: false,
Expand Down

0 comments on commit c29e82a

Please sign in to comment.