Skip to content

Commit 786952d

Browse files
committed
DO NOT MERGE: unwrap udp test directly
1 parent 56a2a8a commit 786952d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xtask/src/ci/qemu.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,9 +559,9 @@ fn test_testudp(guest_ip: IpAddr) -> Result<()> {
559559
let buf = "exit";
560560
let socket_addr = SocketAddr::new(guest_ip, 9975);
561561
eprintln!("[CI] send {buf:?} via UDP to {socket_addr}");
562-
let socket = UdpSocket::bind((Ipv4Addr::UNSPECIFIED, 0))?;
563-
socket.connect(socket_addr)?;
564-
socket.send(buf.as_bytes())?;
562+
let socket = UdpSocket::bind((Ipv4Addr::UNSPECIFIED, 0)).unwrap();
563+
socket.connect(socket_addr).unwrap();
564+
socket.send(buf.as_bytes()).unwrap();
565565

566566
Ok(())
567567
}

0 commit comments

Comments
 (0)