Skip to content

Commit c6685ce

Browse files
authored
ci: Fix BSD CI failures
- 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>
1 parent adf46bb commit c6685ce

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.cirrus.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@ openbsd_task:
5858
# OpenBSD is tier 3 target, so install rust from package manager instead of rustup
5959
- pkg_add git rust
6060
test_script:
61-
- cargo test
61+
# `test` fails because our tests have an MSRV of 1.70.
62+
- cargo build

tests/issue_182.rs

+6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ fn networking_initialized() {
1212
return;
1313
}
1414
};
15+
16+
// Make sure we can access the host normally.
17+
if TcpStream::connect(address).is_err() {
18+
return;
19+
}
20+
1521
async_io::block_on(async move {
1622
let _ = Async::<TcpStream>::connect(address).await.unwrap();
1723
});

0 commit comments

Comments
 (0)