tweak 2 rent tests to narrow epoch ranges (#23420)

This commit is contained in:
Jeff Washington (jwash)
2022-03-02 08:22:33 -06:00
committed by GitHub
parent a4f4ac5279
commit c8cb940b4e

View File

@ -232,7 +232,7 @@ mod tests {
fn test_collect_from_account_created_and_existing() {
let old_lamports = 1000;
let old_epoch = 1;
let new_epoch = 3;
let new_epoch = 2;
let (mut created_account, mut existing_account) = {
let account = AccountSharedData::from(Account {
@ -336,7 +336,7 @@ mod tests {
rent_epoch: account_rent_epoch,
..Account::default()
});
let rent_collector = default_rent_collector_clone_with_epoch(account_rent_epoch + 2);
let rent_collector = default_rent_collector_clone_with_epoch(account_rent_epoch + 1);
let collected =
rent_collector.collect_from_existing_account(&Pubkey::new_unique(), &mut account, None);