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
  • Loading branch information
ryoqun authored May 13, 2020
1 parent 9575afc commit 13bc3f8
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 @@ -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);

Expand Down

0 comments on commit 13bc3f8

Please sign in to comment.