We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
connect_timeout_unroutable
1 parent 2cf736f commit 24a9ac7Copy full SHA for 24a9ac7
src/libstd/net/tcp.rs
@@ -1673,17 +1673,6 @@ mod tests {
1673
})
1674
}
1675
1676
- #[test]
1677
- fn connect_timeout_unroutable() {
1678
- // this IP is unroutable, so connections should always time out,
1679
- // provided the network is reachable to begin with.
1680
- let addr = "10.255.255.1:80".parse().unwrap();
1681
- let e = TcpStream::connect_timeout(&addr, Duration::from_millis(250)).unwrap_err();
1682
- assert!(e.kind() == io::ErrorKind::TimedOut ||
1683
- e.kind() == io::ErrorKind::Other,
1684
- "bad error: {} {:?}", e, e.kind());
1685
- }
1686
-
1687
#[test]
1688
fn connect_timeout_unbound() {
1689
// bind and drop a socket to track down a "probably unassigned" port
0 commit comments