diff --git a/src/sys/socket/addr.rs b/src/sys/socket/addr.rs index a446f7454b..eb1944bb99 100644 --- a/src/sys/socket/addr.rs +++ b/src/sys/socket/addr.rs @@ -2272,7 +2272,7 @@ mod tests { #[test] fn ip() { - let s = "127.0.0.1:8080"; + let s = "127.0.0.1:8082"; let ip = SockaddrIn::from_str(s).unwrap().ip(); assert_eq!("127.0.0.1", format!("{ip}")); } diff --git a/test/sys/test_socket.rs b/test/sys/test_socket.rs index 12729b23a4..ffa54a98c2 100644 --- a/test/sys/test_socket.rs +++ b/test/sys/test_socket.rs @@ -21,7 +21,7 @@ pub fn test_timestamping() { }; use std::io::{IoSlice, IoSliceMut}; - let sock_addr = SockaddrIn::from_str("127.0.0.1:6790").unwrap(); + let sock_addr = SockaddrIn::from_str("127.0.0.1:6797").unwrap(); let ssock = socket( AddressFamily::Inet, @@ -434,7 +434,7 @@ mod recvfrom { #[test] pub fn udp() { - let std_sa = SocketAddrV4::from_str("127.0.0.1:6789").unwrap(); + let std_sa = SocketAddrV4::from_str("127.0.0.1:6795").unwrap(); let sock_addr = SockaddrIn::from(std_sa); let rsock = socket( AddressFamily::Inet, @@ -793,10 +793,10 @@ mod recvfrom { #[test] pub fn udp_inet6() { let addr = std::net::Ipv6Addr::from_str("::1").unwrap(); - let rport = 6789; + let rport = 6796; let rstd_sa = SocketAddrV6::new(addr, rport, 0, 0); let raddr = SockaddrIn6::from(rstd_sa); - let sport = 6790; + let sport = 6798; let sstd_sa = SocketAddrV6::new(addr, sport, 0, 0); let saddr = SockaddrIn6::from(sstd_sa); let rsock = socket( diff --git a/test/sys/test_sockopt.rs b/test/sys/test_sockopt.rs index 60b57fb5f2..bd72e9a7fd 100644 --- a/test/sys/test_sockopt.rs +++ b/test/sys/test_sockopt.rs @@ -110,7 +110,7 @@ fn test_so_tcp_maxseg() { use std::net::SocketAddrV4; use std::str::FromStr; - let std_sa = SocketAddrV4::from_str("127.0.0.1:4001").unwrap(); + let std_sa = SocketAddrV4::from_str("127.0.0.1:4003").unwrap(); let sock_addr = SockaddrIn::from(std_sa); let rsock = socket(