From 24a9ac7d03972e8a5163e6c3774b4eddc05a6ca2 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Mon, 14 Jan 2019 09:24:52 +1100 Subject: [PATCH] Remove the `connect_timeout_unroutable` test. It requires an unreachable IP address, but there is no such thing, and this has caused it to fail for multiple people. Fixes #44698, fixes #50065. --- src/libstd/net/tcp.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/libstd/net/tcp.rs b/src/libstd/net/tcp.rs index b75591e53fc72..86ecb10edf2f9 100644 --- a/src/libstd/net/tcp.rs +++ b/src/libstd/net/tcp.rs @@ -1673,17 +1673,6 @@ mod tests { }) } - #[test] - fn connect_timeout_unroutable() { - // this IP is unroutable, so connections should always time out, - // provided the network is reachable to begin with. - let addr = "10.255.255.1:80".parse().unwrap(); - let e = TcpStream::connect_timeout(&addr, Duration::from_millis(250)).unwrap_err(); - assert!(e.kind() == io::ErrorKind::TimedOut || - e.kind() == io::ErrorKind::Other, - "bad error: {} {:?}", e, e.kind()); - } - #[test] fn connect_timeout_unbound() { // bind and drop a socket to track down a "probably unassigned" port