Skip to content

Commit

Permalink
test: fix test_offset_allocate_same_initiative_fuzz
Browse files Browse the repository at this point in the history
  • Loading branch information
danielattilasimon committed Dec 13, 2024
1 parent ff4804a commit abe3550
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/Governance.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1964,7 +1964,7 @@ abstract contract GovernanceTest is Test {
_allocateLQTY(user, lqtyAmount2);

// get user voting power at start of epoch 2
(,,, uint256 allocatedOffset1) = governance.userStates(user);
(, uint256 unallocatedOffset1,, uint256 allocatedOffset1) = governance.userStates(user);

// =========== epoch 3 (start) ==================
// 3. user allocates to baseInitiative1 in epoch 3
Expand All @@ -1977,8 +1977,8 @@ abstract contract GovernanceTest is Test {
_allocateLQTY(user, lqtyAmount3);

// get user voting power at start of epoch 3 from lqtyAllocatedByUserToInitiative
(,,, uint256 allocatedOffset2) = governance.userStates(user);
assertEq(allocatedOffset2, allocatedOffset1, "allocatedOffset1 != allocatedOffset2");
(, uint256 unallocatedOffset2,, uint256 allocatedOffset2) = governance.userStates(user);
assertEq(unallocatedOffset2 + allocatedOffset2, unallocatedOffset1 + allocatedOffset1, "offset2 != offset1");
}

function test_voting_snapshot_start_vs_end_epoch() public {
Expand Down

0 comments on commit abe3550

Please sign in to comment.