Skip to content

Commit 47ccf2a

Browse files
authored
Rollup merge of #57584 - nnethercote:rm-connect_timeout_unroutable, r=sfackler
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. r? @sfackler
2 parents 4112aef + 24a9ac7 commit 47ccf2a

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/libstd/net/tcp.rs

-11
Original file line numberDiff line numberDiff line change
@@ -1673,17 +1673,6 @@ mod tests {
16731673
})
16741674
}
16751675

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-
16871676
#[test]
16881677
fn connect_timeout_unbound() {
16891678
// bind and drop a socket to track down a "probably unassigned" port

0 commit comments

Comments
 (0)