Skip to content

Commit

Permalink
Fix unstable test after eager rent collection (#10031)
Browse files Browse the repository at this point in the history
automerge

(cherry picked from commit 13bc3f8)
  • Loading branch information
ryoqun authored and mergify-bot committed May 15, 2020
1 parent e9dda5e commit c068a1d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c068a1d

Please sign in to comment.