Skip to content

Commit

Permalink
Fix test to match reverted activation bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenGround0 committed Apr 17, 2023
1 parent fc418a3 commit fb09286
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test_vm/tests/extend_sectors_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,10 @@ fn extend_updated_sector_with_claim() {
assert_eq!(StoragePower::zero(), sector_info_after_extension.deal_weight); // 0 space time

assert_eq!(
DealWeight::from((sector_info_after_extension.expiration - v.epoch()) * (32i64 << 30)),
DealWeight::from(
(sector_info_after_extension.expiration - sector_info_after_update.activation)
* (32i64 << 30)
),
sector_info_after_extension.verified_deal_weight
); // 32 GiB * the remaining life of the sector

Expand Down

0 comments on commit fb09286

Please sign in to comment.