Skip to content
This repository was archived by the owner on Nov 15, 2019. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
}
}
}
Expand Down