Skip to content

Commit

Permalink
ci: add udp read timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Feb 14, 2024
1 parent cbcae46 commit dbde6d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xtask/src/ci/qemu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ fn test_mioudp() -> Result<()> {
socket.connect("127.0.0.1:9975")?;
socket.send(buf.as_bytes())?;

socket.set_read_timeout(Some(Duration::from_secs(10)))?;
let mut buf = [0; 128];
let received = socket.recv(&mut buf)?;
eprintln!("[CI] receive: {}", from_utf8(&buf[..received])?);
Expand Down

0 comments on commit dbde6d7

Please sign in to comment.