Only run Tokio tests on non-Windows platforms

This commit is contained in:
Sam Poder 2023-08-08 10:57:04 -04:00 committed by Conrad Kramer
parent 17af030893
commit d821f3d03c

View file

@ -1,7 +1,7 @@
use std::net::Ipv4Addr;
#[tokio::test]
#[cfg(feature = "tokio")]
#[cfg(all(feature = "tokio", not(target_os = "windows")))]
async fn test_create() {
let tun = tun::TunInterface::new().unwrap();
let async_tun = tun::tokio::TunInterface::new(tun).unwrap();