changelog shortlog graph tags branches changeset files file revisions raw help

Mercurial > core / annotate rust/lib/net/src/tests.rs

changeset 698: 96958d3eb5b0
parent: c7165d93a9eb
author: Richard Westhaver <ellis@rwest.io>
date: Fri, 04 Oct 2024 22:04:59 -0400
permissions: -rw-r--r--
description: fixes
17
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
1
 //! net tests
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
2
 use std::net::UdpSocket;
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
3
 #[test]
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
4
 fn udp_start() {
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
5
   let socket = UdpSocket::bind("127.0.0.1:0").expect("UdpSocket::bind failed");
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
6
   assert!(socket.broadcast().is_ok());
c7165d93a9eb add obj and net src
ellis <ellis@rwest.io>
parents:
diff changeset
7
 }