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.");
965
+
let port6 = unused_tcp6_port().expect("Unable to find unused port.");
963
966
CommandLineTest::new()
964
967
.flag("listen-address",Some("127.0.0.1"))
965
968
.flag("listen-address",Some("::1"))
@@ -1300,9 +1303,8 @@ fn enr_tcp6_port_flag() {
1300
1303
fnenr_match_flag_over_ipv4(){
1301
1304
let addr = "127.0.0.2".parse::<Ipv4Addr>().unwrap();
1302
1305
1303
-
// 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).
1304
-
let udp4_port = DUMMY_ENR_UDP_PORT;
1305
-
let tcp4_port = DUMMY_ENR_TCP_PORT;
1306
+
let udp4_port = unused_udp4_port().expect("Unable to find unused port.");
1307
+
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).
1336
-
let udp6_port = DUMMY_ENR_UDP_PORT;
1337
-
let tcp6_port = DUMMY_ENR_TCP_PORT;
1337
+
let udp6_port = unused_udp6_port().expect("Unable to find unused port.");
1338
+
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).
1367
-
let udp6_port = DUMMY_ENR_UDP_PORT;
1368
-
let tcp6_port = DUMMY_ENR_TCP_PORT;
1367
+
let udp6_port = unused_udp6_port().expect("Unable to find unused port.");
1368
+
let tcp6_port = unused_tcp6_port().expect("Unable to find unused port.");
1369
1369
let ipv6_addr = IPV6_ADDR.parse::<Ipv6Addr>().unwrap();
1370
1370
1371
1371
constIPV4_ADDR:&str = "127.0.0.1";
1372
-
// 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).
1373
-
let udp4_port = DUMMY_ENR_UDP_PORT;
1374
-
let tcp4_port = DUMMY_ENR_TCP_PORT;
1372
+
let udp4_port = unused_udp4_port().expect("Unable to find unused port.");
1373
+
let tcp4_port = unused_tcp4_port().expect("Unable to find unused port.");
1375
1374
let ipv4_addr = IPV4_ADDR.parse::<Ipv4Addr>().unwrap();
0 commit comments