From 3ea88220041c1bf2eed30dc1bf73ed5fadac1a68 Mon Sep 17 00:00:00 2001 From: inv2004 Date: Fri, 14 Dec 2018 02:02:58 -0500 Subject: [PATCH] ::command tests ignored for windows --- tests/collection.rs | 2 +- tests/cursor.rs | 2 +- tests/database.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/collection.rs b/tests/collection.rs index 0244847..e4f6ad7 100644 --- a/tests/collection.rs +++ b/tests/collection.rs @@ -33,7 +33,7 @@ fn test_aggregate() { assert_eq!(Ok(5), total.get_i32("total")); } -#[cfg(not(target_os = "windows"))] +#[cfg_attr(target_os = "windows", ignore)] #[test] fn test_command() { let uri = Uri::new("mongodb://localhost:27017/").unwrap(); diff --git a/tests/cursor.rs b/tests/cursor.rs index 50e06d8..f99ddb3 100644 --- a/tests/cursor.rs +++ b/tests/cursor.rs @@ -88,7 +88,7 @@ fn test_tailing_cursor() { assert_eq!(25, guard.join().expect("Thread failed")); } -#[cfg(not(target_os = "windows"))] +#[cfg_attr(target_os = "windows", ignore)] #[test] fn test_batch_cursor() { let uri = Uri::new("mongodb://localhost:27017/").unwrap(); diff --git a/tests/database.rs b/tests/database.rs index 896b3cf..5acfed4 100644 --- a/tests/database.rs +++ b/tests/database.rs @@ -1,6 +1,6 @@ use mongo_driver::client::{ClientPool,Uri}; -#[cfg(not(target_os = "windows"))] +#[cfg_attr(target_os = "windows", ignore)] #[test] fn test_command() { let uri = Uri::new("mongodb://localhost:27017/").unwrap();