From 6e2888ca48a370d6e58d449318c4624fea4642c4 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Wed, 14 Feb 2024 10:46:57 +0100 Subject: [PATCH] add check, if mioudp returns a valid string --- xtask/src/ci/qemu.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xtask/src/ci/qemu.rs b/xtask/src/ci/qemu.rs index 5d77328f05..8c774bf531 100644 --- a/xtask/src/ci/qemu.rs +++ b/xtask/src/ci/qemu.rs @@ -284,10 +284,6 @@ fn test_testudp() -> Result<()> { socket.connect("127.0.0.1:9975")?; socket.send(buf.as_bytes())?; - let mut buf = [0; 128]; - let received = socket.recv(&mut buf)?; - eprintln!("[CI] receive: {}", from_utf8(&buf[..received])?); - Ok(()) } @@ -313,6 +309,10 @@ fn test_mioudp() -> Result<()> { socket.connect("127.0.0.1:9975")?; socket.send(buf.as_bytes())?; + let mut buf = [0; 128]; + let received = socket.recv(&mut buf)?; + eprintln!("[CI] receive: {}", from_utf8(&buf[..received])?); + Ok(()) }