From e1908232395d930e14f7dc5f2971319ca89f7e5f Mon Sep 17 00:00:00 2001 From: realbigsean Date: Fri, 20 Oct 2023 16:11:51 -0400 Subject: [PATCH] fix overflow tests --- .../data_availability_checker/overflow_lru_cache.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/beacon_node/beacon_chain/src/data_availability_checker/overflow_lru_cache.rs b/beacon_node/beacon_chain/src/data_availability_checker/overflow_lru_cache.rs index e4f1685d5af..aa7c5622ef0 100644 --- a/beacon_node/beacon_chain/src/data_availability_checker/overflow_lru_cache.rs +++ b/beacon_node/beacon_chain/src/data_availability_checker/overflow_lru_cache.rs @@ -970,6 +970,7 @@ mod test { ) -> ( BeaconChainHarness>, Arc>, + TempDir, ) where E: EthSpec, @@ -984,7 +985,7 @@ mod test { OverflowLRUCache::::new(capacity, test_store, spec.clone()) .expect("should create cache"), ); - (harness, cache) + (harness, cache, chain_db_path) } #[tokio::test] @@ -992,7 +993,7 @@ mod test { type E = MinimalEthSpec; type T = DiskHarnessType; let capacity = 4; - let (harness, cache) = setup_harness_and_cache::(capacity).await; + let (harness, cache, _path) = setup_harness_and_cache::(capacity).await; let (pending_block, blobs) = availability_pending_block(&harness).await; let root = pending_block.import_data.block_root; @@ -1104,7 +1105,7 @@ mod test { type E = MinimalEthSpec; type T = DiskHarnessType; let capacity = 4; - let (harness, cache) = setup_harness_and_cache::(capacity).await; + let (harness, cache, _path) = setup_harness_and_cache::(capacity).await; let mut pending_blocks = VecDeque::new(); let mut pending_blobs = VecDeque::new(); @@ -1255,7 +1256,7 @@ mod test { type E = MinimalEthSpec; type T = DiskHarnessType; let capacity = E::slots_per_epoch() as usize; - let (harness, cache) = setup_harness_and_cache::(capacity).await; + let (harness, cache, _path) = setup_harness_and_cache::(capacity).await; let n_epochs = 4; let mut pending_blocks = VecDeque::new(); @@ -1395,7 +1396,7 @@ mod test { type E = MinimalEthSpec; type T = DiskHarnessType; let capacity = E::slots_per_epoch() as usize; - let (harness, cache) = setup_harness_and_cache::(capacity).await; + let (harness, cache, _path) = setup_harness_and_cache::(capacity).await; let n_epochs = 4; let mut pending_blocks = VecDeque::new(); @@ -1573,7 +1574,7 @@ mod test { type E = MinimalEthSpec; type T = DiskHarnessType; let capacity = STATE_LRU_CAPACITY * 2; - let (harness, cache) = setup_harness_and_cache::(capacity).await; + let (harness, cache, _path) = setup_harness_and_cache::(capacity).await; let mut pending_blocks = VecDeque::new(); let mut states = Vec::new();