Skip to content

Commit

Permalink
test(client): remove unneeded ipv6 dns parse test
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Oct 14, 2021
1 parent 910e026 commit 55a61c0
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/client/connect/dns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,17 +416,4 @@ mod tests {
assert_eq!(name.as_str(), DOMAIN);
assert_eq!(name.to_string(), DOMAIN);
}

#[test]
fn ip_addrs_try_parse_v6() {
let dst = ::http::Uri::from_static("http://[::1]:8080/");

let mut addrs =
SocketAddrs::try_parse(dst.host().expect("host"), dst.port_u16().expect("port"))
.expect("try_parse");

let expected = "[::1]:8080".parse::<SocketAddr>().expect("expected");

assert_eq!(addrs.next(), Some(expected));
}
}

0 comments on commit 55a61c0

Please sign in to comment.