Skip to content

Commit

Permalink
Fix test names regarding ip version
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusU committed Mar 16, 2019
1 parent 7f7cfae commit 7e73cd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/net/udp.rs
Expand Up @@ -896,15 +896,15 @@ mod tests {
}

#[test]
fn socket_name_ip4() {
fn socket_name() {
each_ip(&mut |addr, _| {
let server = t!(UdpSocket::bind(&addr));
assert_eq!(addr, t!(server.local_addr()));
})
}

#[test]
fn socket_peer_ip4() {
fn socket_peer() {
each_ip(&mut |addr1, addr2| {
let server = t!(UdpSocket::bind(&addr1));
assert_eq!(server.peer_addr().unwrap_err().kind(), ErrorKind::NotConnected);
Expand Down

0 comments on commit 7e73cd4

Please sign in to comment.