From fb09286baaa1e8d92d16afd37a829e7c331688f7 Mon Sep 17 00:00:00 2001 From: zenground0 Date: Mon, 17 Apr 2023 16:11:29 -0600 Subject: [PATCH] Fix test to match reverted activation bug fix --- test_vm/tests/extend_sectors_test.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test_vm/tests/extend_sectors_test.rs b/test_vm/tests/extend_sectors_test.rs index 6097af518..92b1eb960 100644 --- a/test_vm/tests/extend_sectors_test.rs +++ b/test_vm/tests/extend_sectors_test.rs @@ -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