Skip to content

Commit

Permalink
test: use port0 in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Oct 28, 2024
1 parent 05ee75f commit a9cf308
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/net/network/tests/it/startup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ async fn test_node_record_address_with_nat() {
.add_nat(Some(NatResolver::ExternalIp("10.1.1.1".parse().unwrap())))
.disable_discv4_discovery()
.disable_dns_discovery()
.listener_port(0)
.build_with_noop_provider(MAINNET.clone());

let network = NetworkManager::new(config).await.unwrap();
Expand All @@ -127,6 +128,7 @@ async fn test_node_record_address_with_nat_disable_discovery() {
let config = NetworkConfigBuilder::new(secret_key)
.add_nat(Some(NatResolver::ExternalIp("10.1.1.1".parse().unwrap())))
.disable_discovery()
.listener_port(0)
.build_with_noop_provider(MAINNET.clone());

let network = NetworkManager::new(config).await.unwrap();
Expand Down

0 comments on commit a9cf308

Please sign in to comment.