Fix test_accounts_data_size_and_resize_transactions (#27105)

This commit is contained in:
Brooks Prumo 2022-08-12 13:06:54 -04:00 committed by GitHub
parent 8e30dbbbf2
commit 35c87c3888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -19333,7 +19333,10 @@ pub(crate) mod tests {
{
let account_pubkey = Pubkey::new_unique();
let account_balance = LAMPORTS_PER_SOL;
let account_size = rng.gen_range(1, MAX_PERMITTED_DATA_LENGTH) as usize;
let account_size = rng.gen_range(
1,
MAX_PERMITTED_DATA_LENGTH as usize - MAX_PERMITTED_DATA_INCREASE,
);
let account_data =
AccountSharedData::new(account_balance, account_size, &mock_program_id);
bank.store_account(&account_pubkey, &account_data);