Fix unstable test after eager rent collection (#10031)

automerge
This commit is contained in:
Ryo Onodera 2020-05-14 02:35:58 +09:00 committed by GitHub
parent 9575afc8fa
commit 13bc3f8094
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -4147,6 +4147,11 @@ mod tests {
..GenesisConfig::default()
}));
// enable lazy rent collection because this test depends on rent-due accounts
// not being eagerly-collected for exact rewards calculation
bank.lazy_rent_collection.store(true, Ordering::Relaxed);
assert_eq!(bank.capitalization(), 42 * 1_000_000_000);
assert_eq!(bank.rewards, None);