Skip to content

Commit

Permalink
[Flaky test] Fix test_trie_consistency_random.
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-near committed Nov 6, 2023
1 parent c0e44b9 commit c3a5f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/store/src/trie/mem/updating.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ mod tests {
let num_insertions =
rand::thread_rng().gen_range(0..=(MAX_KEYS - existing_keys.len()) / SLOWDOWN);
let num_deletions =
rand::thread_rng().gen_range(0..=existing_keys.len() / SLOWDOWN + 1);
rand::thread_rng().gen_range(0..=(existing_keys.len() + SLOWDOWN - 1) / SLOWDOWN);
let mut changes = Vec::new();
for _ in 0..num_insertions {
let key_length = rand::thread_rng().gen_range(0..=10);
Expand Down

0 comments on commit c3a5f47

Please sign in to comment.