Skip to content

Commit

Permalink
test all functions are de-authed
Browse files Browse the repository at this point in the history
  • Loading branch information
hexonaut committed Feb 21, 2024
1 parent 9465e5b commit 8e309b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions test/IntegrationTests.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -833,13 +833,14 @@ contract RemoveMultisigSpellTest is ExecuteOnceSpellTests {

// Verify multisig can no longer freeze and unfreeze markets
vm.startPrank(multisig);
assertEq(_isFrozen(WETH), false);
vm.expectRevert("SparkLendFreezerMom/not-authorized");
freezerMom.freezeMarket(WETH, true);
assertEq(_isFrozen(WETH), false);
vm.expectRevert("SparkLendFreezerMom/not-authorized");
freezerMom.freezeMarket(WETH, false);
assertEq(_isFrozen(WETH), false);
freezerMom.pauseMarket(WETH, true);
vm.expectRevert("SparkLendFreezerMom/not-authorized");
freezerMom.freezeAllMarkets(true);
vm.expectRevert("SparkLendFreezerMom/not-authorized");
freezerMom.pauseAllMarkets(true);
vm.stopPrank();
}

Expand Down
2 changes: 1 addition & 1 deletion test/SparkLendFreezerMom.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ contract DenyTests is SparkLendFreezerMomUnitTestBase {

function test_deny_authorized_spell() public {
address authedContract = makeAddr("authedContract");
address caller = makeAddr("caller");
address caller = makeAddr("caller");

authority.__setCanCall(
caller,
Expand Down

0 comments on commit 8e309b1

Please sign in to comment.