aboutsummaryrefslogtreecommitdiff
path: root/src/test.rs
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2019-12-13 13:15:48 -0500
committerJack O'Connor <[email protected]>2019-12-13 13:15:48 -0500
commitd963fe18f3f30246b9182b52ab8f205a26603b93 (patch)
tree76f4785c33efbfa917c77525ab2c5bb20456a1c8 /src/test.rs
parent0c245f21bf7f7b723b9714815e73fa5cc72a0724 (diff)
test release mode in CI
As part of this, get rid of the BLAKE3_FUZZ_ITERATIONS variable. I wasn't using it anywhere, and it was leading to some compiler warnings in --no-default-features mode.
Diffstat (limited to 'src/test.rs')
-rw-r--r--src/test.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/test.rs b/src/test.rs
index ba22e4e..641fd33 100644
--- a/src/test.rs
+++ b/src/test.rs
@@ -365,13 +365,7 @@ fn test_fuzz_hasher() {
// Don't do too many iterations in debug mode, to keep the tests under a
// second or so. CI should run tests in release mode also. Provide an
// environment variable for specifying a larger number of fuzz iterations.
- let mut num_tests: usize = if cfg!(debug_assertions) { 100 } else { 10_000 };
- #[cfg(feature = "std")]
- {
- if let Ok(iters) = std::env::var("BLAKE3_FUZZ_ITERATIONS") {
- num_tests = iters.parse().expect("invalid usize");
- }
- }
+ let num_tests = if cfg!(debug_assertions) { 100 } else { 10_000 };
// Use a fixed RNG seed for reproducibility.
let mut rng = rand_chacha::ChaCha8Rng::from_seed([1; 32]);