Skip to content

Commit

Permalink
working expect revert
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAlcibiades authored Apr 19, 2022
1 parent f479e9d commit 6d284ad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/test/OptionSettlement.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,12 @@ contract OptionSettlementTest is Test, NFTreceiver {

function testSetFeeTo() public {
assertEq(engine.feeTo(), FEE_TO);
vm.expectRevert(abi.encodeWithSelector(IOptionSettlementEngine.AccessControlViolation.selector, address(this), FEE_TO));
engine.setFeeTo(ALICE);
vm.startPrank(FEE_TO);
engine.setFeeTo(ALICE);
vm.stopPrank();
assertEq(engine.feeTo(), ALICE);
// TODO(https://github.com/foundry-rs/foundry/issues/1360)
//vm.expectRevert();
//engine.setFeeTo(ALICE);
}

function testBalances() public {
Expand Down

0 comments on commit 6d284ad

Please sign in to comment.