changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > core / 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
1 //! net tests
2 use std::net::UdpSocket;
3 #[test]
4 fn udp_start() {
5  let socket = UdpSocket::bind("127.0.0.1:0").expect("UdpSocket::bind failed");
6  assert!(socket.broadcast().is_ok());
7 }