Skip to content

Commit

Permalink
feat: Update unit test (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-manuel authored Oct 25, 2024
1 parent b406027 commit 25447fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/mainnet-fork/PsmCalls.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ interface IPSM is IPSMLike {

contract MainnetControllerSwapUSDSToUSDCFailureTests is ForkTestBase {

function test_swapUSDCToUSDS_notRelayer() external {
function test_swapUSDSToUSDC_notRelayer() external {
vm.expectRevert(abi.encodeWithSignature(
"AccessControlUnauthorizedAccount(address,bytes32)",
address(this),
RELAYER
));
mainnetController.swapUSDCToUSDS(1e6);
mainnetController.swapUSDSToUSDC(1e6);
}

function test_swapUSDCToUSDS_frozen() external {
function test_swapUSDSToUSDC_frozen() external {
vm.prank(freezer);
mainnetController.freeze();

vm.prank(relayer);
vm.expectRevert("MainnetController/not-active");
mainnetController.swapUSDCToUSDS(1e6);
mainnetController.swapUSDSToUSDC(1e6);
}

}
Expand Down

0 comments on commit 25447fa

Please sign in to comment.