Skip to content

Commit

Permalink
Merge pull request #1063 from mkroening/ci-udp-timeout
Browse files Browse the repository at this point in the history
ci: add udp read timeout
  • Loading branch information
mkroening authored Feb 14, 2024
2 parents cbcae46 + d870724 commit ba8c951
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ jobs:
run:
working-directory: kernel
strategy:
fail-fast: false
matrix:
arch: [x86_64, aarch64, riscv64]
package: [rusty_demo, httpd, testudp, hello_world, miotcp, mioudp]
Expand Down
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 ba8c951

Please sign in to comment.