diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 632b9a5..da47ec8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -32,7 +32,6 @@ jobs: test: name: Test runs-on: ubuntu-22.04 - container: ubuntu steps: - uses: actions/checkout@v3 - run: cargo fetch @@ -51,7 +50,6 @@ jobs: coverage: name: Coverage runs-on: ubuntu-latest - container: ubuntu permissions: issues: write diff --git a/src/lib.rs b/src/lib.rs index d4d4ec9..cd60c85 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -743,7 +743,7 @@ mod lib_test { assert_eq!(2, pingresp.ping_resp_received); } - #[cfg(feature = "tokio")] + #[cfg(all(feature = "tokio", target_family = "windows"))] #[tokio::test] async fn test_close_write_tcp_stream_tokio() { use crate::error::ConnectionError; @@ -823,7 +823,7 @@ mod lib_test { }); } - #[cfg(feature = "smol")] + #[cfg(all(feature = "smol", target_family = "windows"))] #[test] fn test_close_write_tcp_stream_smol() { use crate::error::ConnectionError;