Skip to content

Commit

Permalink
add check, if mioudp returns a valid string
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Feb 14, 2024
1 parent 3e5d957 commit 6e2888c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xtask/src/ci/qemu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

Expand All @@ -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(())
}

Expand Down

0 comments on commit 6e2888c

Please sign in to comment.