diff --git a/src/lib.rs b/src/lib.rs index db857883f..4c5005461 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,16 +43,12 @@ extern crate libc; #[cfg(test)] mod test { use std::env; - + #[test] pub fn check_rust_unit_testing_is_not_parallel() { match env::var_os("RUST_TEST_THREADS") { Some(val) => assert!(val.into_string().unwrap() == "1"), - None => panic!("RUST_TEST_THREADS and RUST_TEST_TASKS needs to be 1 for the crust unit tests to work"), - } - match env::var_os("RUST_TEST_TASKS") { - Some(val) => assert!(val.into_string().unwrap() == "1"), - None => panic!("RUST_TEST_THREADS and RUST_TEST_TASKS needs to be 1 for the crust unit tests to work"), + None => panic!("RUST_TEST_THREADS needs to be 1 for the crust unit tests to work"), } } }