From 26af2d4c2683987b90f73d2706f7a32aedd2969c Mon Sep 17 00:00:00 2001 From: sakridge Date: Wed, 24 Mar 2021 15:24:17 -0700 Subject: [PATCH] Up store limit for test_account_grow (#16099) There can be more than 5 stores --- runtime/src/accounts_db.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index 733013a6a2..abde4df9f6 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -5973,14 +5973,14 @@ pub mod tests { account2 ); - // lots of stores, but 3 storages should be enough for everything + // lots of stores, but 7 storages should be enough for everything for _ in 0..25 { accounts.store_uncached(0, &[(&pubkey1, &account1)]); { assert_eq!(accounts.storage.0.len(), 1); let stores = &accounts.storage.get_slot_stores(0).unwrap(); let r_stores = stores.read().unwrap(); - assert!(r_stores.len() <= 5); + assert!(r_stores.len() <= 7); assert_eq!(r_stores[&0].status(), status[0]); } let ancestors = vec![(0, 0)].into_iter().collect();