threadshare: disable tests that can't work on windows

These depend on socket properties that are not available on windows
This commit is contained in:
Jordan Petridis 2022-08-25 00:47:01 +03:00 committed by Sebastian Dröge
parent 602c2588dc
commit 005fbafb30
2 changed files with 3 additions and 0 deletions

View file

@ -43,6 +43,7 @@ fn init() {
} }
#[test] #[test]
#[cfg(not(windows))]
fn multiple_contexts_queue() { fn multiple_contexts_queue() {
use std::net; use std::net;
use std::net::{IpAddr, Ipv4Addr, SocketAddr}; use std::net::{IpAddr, Ipv4Addr, SocketAddr};
@ -170,6 +171,7 @@ fn multiple_contexts_queue() {
} }
#[test] #[test]
#[cfg(not(windows))]
fn multiple_contexts_proxy() { fn multiple_contexts_proxy() {
use std::net; use std::net;
use std::net::{IpAddr, Ipv4Addr, SocketAddr}; use std::net::{IpAddr, Ipv4Addr, SocketAddr};

View file

@ -32,6 +32,7 @@ fn init() {
} }
#[test] #[test]
#[cfg(not(windows))]
fn test_push() { fn test_push() {
init(); init();