Fix unstable test after eager rent collection (#10031) (#10060)

automerge
This commit is contained in:
mergify[bot]
2020-05-15 01:25:48 -07:00
committed by GitHub
parent e9dda5ebd7
commit b9a80152df

View File

@ -4146,6 +4146,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);