Skip to content

Commit

Permalink
ci: Fix BSD CI failures
Browse files Browse the repository at this point in the history
- Fix a previously unnoticed TCP error on NetBSD
- Our tests MSRV is too high, just build on OpenBSD

Signed-off-by: John Nunley <dev@notgull.net>
  • Loading branch information
notgull committed Jan 27, 2024
1 parent adf46bb commit c6685ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ openbsd_task:
# OpenBSD is tier 3 target, so install rust from package manager instead of rustup
- pkg_add git rust
test_script:
- cargo test
# `test` fails because our tests have an MSRV of 1.70.
- cargo build
6 changes: 6 additions & 0 deletions tests/issue_182.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ fn networking_initialized() {
return;
}
};

// Make sure we can access the host normally.
if TcpStream::connect(address).is_err() {
return;
}

async_io::block_on(async move {
let _ = Async::<TcpStream>::connect(address).await.unwrap();
});
Expand Down

0 comments on commit c6685ce

Please sign in to comment.