You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let port = unused_tcp4_port().expect("Unable to find unused port.");
985
+
let port6 = unused_tcp6_port().expect("Unable to find unused port.");
983
986
CommandLineTest::new()
984
987
.flag("listen-address",Some("127.0.0.1"))
985
988
.flag("listen-address",Some("::1"))
@@ -1320,9 +1323,8 @@ fn enr_tcp6_port_flag() {
1320
1323
fnenr_match_flag_over_ipv4(){
1321
1324
let addr = "127.0.0.2".parse::<Ipv4Addr>().unwrap();
1322
1325
1323
-
// the reason we use the ENR dummy values is because, due to the nature of the `--enr-match` flag, these will eventually become ENR ports (as well as listening ports).
1324
-
let udp4_port = DUMMY_ENR_UDP_PORT;
1325
-
let tcp4_port = DUMMY_ENR_TCP_PORT;
1326
+
let udp4_port = unused_udp4_port().expect("Unable to find unused port.");
1327
+
let tcp4_port = unused_tcp4_port().expect("Unable to find unused port.");
// the reason we use the ENR dummy values is because, due to the nature of the `--enr-match` flag, these will eventually become ENR ports (as well as listening ports).
1356
-
let udp6_port = DUMMY_ENR_UDP_PORT;
1357
-
let tcp6_port = DUMMY_ENR_TCP_PORT;
1357
+
let udp6_port = unused_udp6_port().expect("Unable to find unused port.");
1358
+
let tcp6_port = unused_tcp6_port().expect("Unable to find unused port.");
// the reason we use the ENR dummy values is because, due to the nature of the `--enr-match` flag, these will eventually become ENR ports (as well as listening ports).
1387
-
let udp6_port = DUMMY_ENR_UDP_PORT;
1388
-
let tcp6_port = DUMMY_ENR_TCP_PORT;
1387
+
let udp6_port = unused_udp6_port().expect("Unable to find unused port.");
1388
+
let tcp6_port = unused_tcp6_port().expect("Unable to find unused port.");
1389
1389
let ipv6_addr = IPV6_ADDR.parse::<Ipv6Addr>().unwrap();
1390
1390
1391
1391
constIPV4_ADDR:&str = "127.0.0.1";
1392
-
// the reason we use the ENR dummy values is because, due to the nature of the `--enr-match` flag, these will eventually become ENR ports (as well as listening ports).
1393
-
let udp4_port = DUMMY_ENR_UDP_PORT;
1394
-
let tcp4_port = DUMMY_ENR_TCP_PORT;
1392
+
let udp4_port = unused_udp4_port().expect("Unable to find unused port.");
1393
+
let tcp4_port = unused_tcp4_port().expect("Unable to find unused port.");
1395
1394
let ipv4_addr = IPV4_ADDR.parse::<Ipv4Addr>().unwrap();
0 commit comments