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(()) }