Skip to content

Commit

Permalink
minimum triememory size in trie tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mina86 committed Nov 19, 2023
1 parent 2b02822 commit e18e5c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/sealable-trie/src/trie/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fn make_trie_impl<'a>(
want: Option<(&str, usize)>,
) -> TestTrie {
let keys = keys.into_iter();
let count = keys.size_hint().1.unwrap_or(1000).saturating_mul(4);
let count = keys.size_hint().1.unwrap_or(1000).saturating_mul(4).max(100);
let mut trie = TestTrie::new(count);
for key in keys {
set(&mut trie, key)
Expand Down

0 comments on commit e18e5c9

Please sign in to comment.