From c8cb940b4e02651178e80a25a2934a6d45aee6a8 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Wed, 2 Mar 2022 08:22:33 -0600 Subject: [PATCH] tweak 2 rent tests to narrow epoch ranges (#23420) --- runtime/src/rent_collector.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/src/rent_collector.rs b/runtime/src/rent_collector.rs index 5e69b28102..a960e95dcd 100644 --- a/runtime/src/rent_collector.rs +++ b/runtime/src/rent_collector.rs @@ -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);