make test code more clear (#27260)
This commit is contained in:
parent
42e227778b
commit
1b441f7a2d
|
@ -5536,7 +5536,8 @@ impl AccountsDb {
|
|||
.fetch_add(recycle_stores_write_elapsed.as_us(), Ordering::Relaxed);
|
||||
}
|
||||
|
||||
pub fn flush_accounts_cache_slot(&self, slot: Slot) {
|
||||
#[cfg(test)]
|
||||
pub(crate) fn flush_accounts_cache_slot_for_tests(&self, slot: Slot) {
|
||||
self.flush_slot_cache(slot);
|
||||
}
|
||||
|
||||
|
|
|
@ -6421,11 +6421,11 @@ impl Bank {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub fn flush_accounts_cache_slot(&self) {
|
||||
pub fn flush_accounts_cache_slot_for_tests(&self) {
|
||||
self.rc
|
||||
.accounts
|
||||
.accounts_db
|
||||
.flush_accounts_cache_slot(self.slot())
|
||||
.flush_accounts_cache_slot_for_tests(self.slot())
|
||||
}
|
||||
|
||||
pub fn expire_old_recycle_stores(&self) {
|
||||
|
@ -14672,7 +14672,7 @@ pub(crate) mod tests {
|
|||
bank1.deposit(&pubkey0, some_lamports).unwrap();
|
||||
goto_end_of_slot(Arc::<Bank>::get_mut(&mut bank1).unwrap());
|
||||
bank1.freeze();
|
||||
bank1.flush_accounts_cache_slot();
|
||||
bank1.flush_accounts_cache_slot_for_tests();
|
||||
|
||||
bank1.print_accounts_stats();
|
||||
|
||||
|
|
Loading…
Reference in New Issue