about summary refs log tree commit diff
path: root/src/libstd/net/tcp.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2019-01-14 09:24:52 +1100
committerNicholas Nethercote <nnethercote@mozilla.com>2019-01-14 09:25:54 +1100
commit24a9ac7d03972e8a5163e6c3774b4eddc05a6ca2 (patch)
treeeca77648a81a10b83c7a09745c7cdc97cbfbfa9e /src/libstd/net/tcp.rs
parent2cf736f76563f054aecd84207b39114c6fceb8ed (diff)
downloadrust-24a9ac7d03972e8a5163e6c3774b4eddc05a6ca2.tar.gz
rust-24a9ac7d03972e8a5163e6c3774b4eddc05a6ca2.zip
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.
Diffstat (limited to 'src/libstd/net/tcp.rs')
-rw-r--r--src/libstd/net/tcp.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/libstd/net/tcp.rs b/src/libstd/net/tcp.rs
index b75591e53fc..86ecb10edf2 100644
--- a/src/libstd/net/tcp.rs
+++ b/src/libstd/net/tcp.rs
@@ -1674,17 +1674,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
         let socket = TcpListener::bind("127.0.0.1:0").unwrap();