Skip to content

Commit

Permalink
added status check to e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
pahor167 committed Sep 25, 2024
1 parent 8b64fb0 commit 293a6da
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/protocol/test-sol/devchain/e2e/common/EpochManager.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,19 @@ contract E2E_EpochManager_FinishNextEpochProcess is E2E_EpochManager {
epochManager.finishNextEpochProcess(groups, lessers, greaters);
assertGroupWithVotes(groupWithVotes);

(
uint256 status,
uint256 perValidatorReward,
uint256 totalRewardsVoter,
uint256 totalRewardsCommunity,
uint256 totalRewardsCarbonFund
) = epochManager.getEpochProcessingState();

assertGt(perValidatorReward, 0, "perValidatorReward");
assertGt(totalRewardsVoter, 0, "totalRewardsVoter");
assertGt(totalRewardsCommunity, 0, "totalRewardsCommunity");
assertGt(totalRewardsCarbonFund, 0, "totalRewardsCarbonFund");

assertEq(epochManager.getElected().length, validatorsArray.length - 1);
}

Expand Down

0 comments on commit 293a6da

Please sign in to comment.