Skip to content

Commit

Permalink
socket update
Browse files Browse the repository at this point in the history
  • Loading branch information
hikalium committed Sep 1, 2024
1 parent 0ad3bfb commit aab855c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions noli/src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,9 @@ mod test {
fn create_socket_addr() {
let ip_addr = IpV4Addr::new([127, 0, 0, 1]);
let port = 80;
let socket_addr: SocketAddr = (ip_addr, port).into();
assert!(TcpStream::connect(socket_addr).is_ok());
let sa: SocketAddr = (ip_addr, port).into();
assert_eq!(sa.addr, ip_addr);
assert_eq!(sa.port, 80);
}
#[test]
fn lookup_example_com() {
Expand Down

0 comments on commit aab855c

Please sign in to comment.