Skip to content

Commit

Permalink
Fixed tests and moved ValidatorsMock08 to solidity test folder
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvol committed Sep 17, 2024
1 parent f5a2cb8 commit 95a6b65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/protocol/test-sol/unit/common/EpochManager.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import "@celo-contracts/stability/test/MockSortedOracles.sol";
import "@celo-contracts/common/interfaces/IRegistry.sol";

import { EpochRewardsMock08 } from "@celo-contracts-8/governance/test/EpochRewardsMock.sol";
import { ValidatorsMock08 } from "@celo-contracts-8/governance/test/ValidatorsMock08.sol";
import { ValidatorsMock08 } from "@test-sol/unit/governance/mock/ValidatorsMock08.sol";
import { MockCeloUnreleasedTreasure } from "@celo-contracts-8/common/test/MockCeloUnreleasedTreasure.sol";

contract EpochManagerTest is Test, TestConstants, Utils08 {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.7 <0.8.20;

import "../Validators.sol";
import "../../../contracts/common/FixidityLib.sol";
import "@celo-contracts-8/governance/Validators.sol";
import "@celo-contracts/common/FixidityLib.sol";

/**
* @title A wrapper around Validators that exposes onlyVm functions for testing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3441,9 +3441,8 @@ contract ValidatorsTest_MintStableToEpochManager is ValidatorsTest {
vm.expectRevert("only registered contract");
validators.mintStableToEpochManager(5);
}
function test_Reverts_WhenMintAmountIsZero() public {
function test_WhenMintAmountIsZero() public {
_whenL2();
vm.expectRevert("mint amount is zero.");
vm.prank(address(epochManager));
validators.mintStableToEpochManager(0);
}
Expand Down

0 comments on commit 95a6b65

Please sign in to comment.