@@ -1395,7 +1395,11 @@ mod tests {
13951395
13961396 #[ tokio:: test( flavor = "multi_thread" ) ]
13971397 async fn block_updates ( ) {
1398- let storage = StorageBuilder :: in_memory ( ) . unwrap ( ) ;
1398+ let storage = StorageBuilder :: in_memory_with_trie_pruning_and_pool_size (
1399+ pathfinder_storage:: TriePruneMode :: Archive ,
1400+ std:: num:: NonZeroU32 :: new ( 5 ) . unwrap ( ) ,
1401+ )
1402+ . unwrap ( ) ;
13991403 let mut connection = storage. connection ( ) . unwrap ( ) ;
14001404
14011405 let ( event_tx, event_rx) = tokio:: sync:: mpsc:: channel ( 100 ) ;
@@ -1444,7 +1448,11 @@ mod tests {
14441448
14451449 #[ tokio:: test( flavor = "multi_thread" ) ]
14461450 async fn reorg ( ) {
1447- let storage = StorageBuilder :: in_memory ( ) . unwrap ( ) ;
1451+ let storage = StorageBuilder :: in_memory_with_trie_pruning_and_pool_size (
1452+ pathfinder_storage:: TriePruneMode :: Archive ,
1453+ std:: num:: NonZeroU32 :: new ( 5 ) . unwrap ( ) ,
1454+ )
1455+ . unwrap ( ) ;
14481456 let mut connection = storage. connection ( ) . unwrap ( ) ;
14491457
14501458 let ( event_tx, event_rx) = tokio:: sync:: mpsc:: channel ( 100 ) ;
@@ -1496,7 +1504,11 @@ mod tests {
14961504 // A bug caused reorg'd block numbers to be skipped. This
14971505 // was due to the expected block number not being updated
14981506 // when handling the reorg.
1499- let storage = StorageBuilder :: in_memory ( ) . unwrap ( ) ;
1507+ let storage = StorageBuilder :: in_memory_with_trie_pruning_and_pool_size (
1508+ pathfinder_storage:: TriePruneMode :: Archive ,
1509+ std:: num:: NonZeroU32 :: new ( 5 ) . unwrap ( ) ,
1510+ )
1511+ . unwrap ( ) ;
15001512 let mut connection = storage. connection ( ) . unwrap ( ) ;
15011513
15021514 let ( event_tx, event_rx) = tokio:: sync:: mpsc:: channel ( 100 ) ;
@@ -1557,7 +1569,11 @@ mod tests {
15571569
15581570 #[ tokio:: test( flavor = "multi_thread" ) ]
15591571 async fn reorg_to_genesis ( ) {
1560- let storage = StorageBuilder :: in_memory ( ) . unwrap ( ) ;
1572+ let storage = StorageBuilder :: in_memory_with_trie_pruning_and_pool_size (
1573+ pathfinder_storage:: TriePruneMode :: Archive ,
1574+ std:: num:: NonZeroU32 :: new ( 5 ) . unwrap ( ) ,
1575+ )
1576+ . unwrap ( ) ;
15611577 let mut connection = storage. connection ( ) . unwrap ( ) ;
15621578
15631579 let ( event_tx, event_rx) = tokio:: sync:: mpsc:: channel ( 100 ) ;
@@ -1596,7 +1612,11 @@ mod tests {
15961612
15971613 #[ tokio:: test( flavor = "multi_thread" ) ]
15981614 async fn new_cairo_contract ( ) {
1599- let storage = StorageBuilder :: in_memory ( ) . unwrap ( ) ;
1615+ let storage = StorageBuilder :: in_memory_with_trie_pruning_and_pool_size (
1616+ pathfinder_storage:: TriePruneMode :: Archive ,
1617+ std:: num:: NonZeroU32 :: new ( 5 ) . unwrap ( ) ,
1618+ )
1619+ . unwrap ( ) ;
16001620 let mut connection = storage. connection ( ) . unwrap ( ) ;
16011621
16021622 let ( event_tx, event_rx) = tokio:: sync:: mpsc:: channel ( 1 ) ;
@@ -1635,7 +1655,11 @@ mod tests {
16351655
16361656 #[ tokio:: test( flavor = "multi_thread" ) ]
16371657 async fn new_sierra_contract ( ) {
1638- let storage = StorageBuilder :: in_memory ( ) . unwrap ( ) ;
1658+ let storage = StorageBuilder :: in_memory_with_trie_pruning_and_pool_size (
1659+ pathfinder_storage:: TriePruneMode :: Archive ,
1660+ std:: num:: NonZeroU32 :: new ( 5 ) . unwrap ( ) ,
1661+ )
1662+ . unwrap ( ) ;
16391663 let mut connection = storage. connection ( ) . unwrap ( ) ;
16401664
16411665 let ( event_tx, event_rx) = tokio:: sync:: mpsc:: channel ( 1 ) ;
@@ -1676,7 +1700,11 @@ mod tests {
16761700
16771701 #[ tokio:: test( flavor = "multi_thread" ) ]
16781702 async fn consumer_should_ignore_duplicate_blocks ( ) {
1679- let storage = StorageBuilder :: in_memory ( ) . unwrap ( ) ;
1703+ let storage = StorageBuilder :: in_memory_with_trie_pruning_and_pool_size (
1704+ pathfinder_storage:: TriePruneMode :: Archive ,
1705+ std:: num:: NonZeroU32 :: new ( 5 ) . unwrap ( ) ,
1706+ )
1707+ . unwrap ( ) ;
16801708
16811709 let ( event_tx, event_rx) = tokio:: sync:: mpsc:: channel ( 5 ) ;
16821710
0 commit comments