Skip to content

Commit

Permalink
Up store limit for test_account_grow (solana-labs#16099)
Browse files Browse the repository at this point in the history
There can be more than 5 stores
  • Loading branch information
sakridge authored Mar 24, 2021
1 parent ad47c63 commit 26af2d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 26af2d4

Please sign in to comment.