Skip to content

Commit

Permalink
run expensive merkle_tree tests with fewer iterations, to speed them up
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed May 21, 2024
1 parent 88d1e07 commit 322f780
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/chia-consensus/src/merkle_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -644,9 +644,9 @@ mod tests {

// these tests take a long time to run in unoptimized builds.
#[cfg(not(debug_assertions))]
const TEST_ITERS: i32 = 10000;
const TEST_ITERS: i32 = 1000;
#[cfg(debug_assertions)]
const TEST_ITERS: i32 = 400;
const TEST_ITERS: i32 = 300;

// this test generates a random tree and ensures we can produce the tree
// with the correct root hash and that we can generate proofs, and validate
Expand Down

0 comments on commit 322f780

Please sign in to comment.