Merge pull request #19 from gendx/tune-tests-travis
Decrease the number of tests in debug mode, to account for slower CI on Travis
This commit is contained in:
@@ -912,6 +912,8 @@ pub mod test {
|
||||
}
|
||||
}
|
||||
|
||||
// Due to the 3 nested loops, this test is super slow with debug assertions enabled.
|
||||
#[cfg(not(debug_assertions))]
|
||||
#[test]
|
||||
fn test_add_is_associative() {
|
||||
for x in &get_test_values_projective() {
|
||||
|
||||
@@ -103,7 +103,7 @@ mod test {
|
||||
#[cfg(not(debug_assertions))]
|
||||
const ITERATIONS: u32 = 10000;
|
||||
#[cfg(debug_assertions)]
|
||||
const ITERATIONS: u32 = 1000;
|
||||
const ITERATIONS: u32 = 500;
|
||||
|
||||
/** Test that key generation creates valid keys **/
|
||||
#[test]
|
||||
|
||||
@@ -357,7 +357,7 @@ mod test {
|
||||
#[cfg(not(debug_assertions))]
|
||||
const ITERATIONS: u32 = 10000;
|
||||
#[cfg(debug_assertions)]
|
||||
const ITERATIONS: u32 = 1000;
|
||||
const ITERATIONS: u32 = 500;
|
||||
|
||||
/** Test that key generation creates valid keys **/
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user