Skip to content
Snippets Groups Projects
Commit b162b690 authored by Guillaume Endignoux's avatar Guillaume Endignoux
Browse files

Decrease the number of tests in debug mode, to account for slower CI on Travis.

parent f5ed8a09
No related branches found
No related tags found
No related merge requests found
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment