Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run expensive merkle_tree tests with fewer iterations, to speed them up #530

Merged
merged 1 commit into from
May 21, 2024
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
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
Loading