Skip to content

Commit

Permalink
Tests running clean
Browse files Browse the repository at this point in the history
  • Loading branch information
brickpop committed Nov 14, 2024
1 parent 9a70bc7 commit f12b40e
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 2,194 deletions.
12 changes: 6 additions & 6 deletions test/EmergencyMultisigTree.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ contract EmergencyMultisigTest is AragonTest {
assertEq(address(destinationPlugin), address(0), "Incorrect destinationPlugin");
}

function test_WhenCallingCanApproveAndApproveBeingUncreated() external givenTheProposalIsNotCreated {
function test_WhenCallingCanApproveOrApproveBeingUncreated() external givenTheProposalIsNotCreated {
uint256 randomProposalId = 1234;
bool canApprove;

Expand Down Expand Up @@ -1416,7 +1416,7 @@ contract EmergencyMultisigTest is AragonTest {
}
}

function test_WhenCallingCanApproveAndApproveBeingOpen() external givenTheProposalIsOpen {
function test_WhenCallingCanApproveOrApproveBeingOpen() external givenTheProposalIsOpen {
// It canApprove should return true (when listed on creation, self appointed now)
bool canApprove = eMultisig.canApprove(0, alice);
assertEq(canApprove, true, "Alice should be able to approve");
Expand Down Expand Up @@ -1639,7 +1639,7 @@ contract EmergencyMultisigTest is AragonTest {
assertEq(address(destinationPlugin), address(optimisticPlugin));
}

function test_WhenCallingCanApproveAndApproveBeingApproved() external givenTheProposalWasApprovedByTheAddress {
function test_WhenCallingCanApproveOrApproveBeingApproved() external givenTheProposalWasApprovedByTheAddress {
// It canApprove should return false (when listed on creation, self appointed now)
assertEq(eMultisig.canApprove(0, alice), false, "Alice should not be able to approve again");

Expand Down Expand Up @@ -1792,7 +1792,7 @@ contract EmergencyMultisigTest is AragonTest {
assertEq(address(destinationPlugin), address(optimisticPlugin), "Incorrect destinationPlugin");
}

function test_WhenCallingCanApproveAndApproveBeingPassed() external givenTheProposalPassed {
function test_WhenCallingCanApproveOrApproveBeingPassed() external givenTheProposalPassed {
// It canApprove should return false (when listed on creation, self appointed now)
// vm.startPrank(alice);
assertEq(eMultisig.canApprove(0, alice), false, "Alice should not be able to approve");
Expand Down Expand Up @@ -2031,7 +2031,7 @@ contract EmergencyMultisigTest is AragonTest {
assertEq(address(destinationPlugin), address(optimisticPlugin), "Incorrect destinationPlugin");
}

function test_WhenCallingCanApproveAndApproveBeingExecuted() external givenTheProposalIsAlreadyExecuted {
function test_WhenCallingCanApproveOrApproveBeingExecuted() external givenTheProposalIsAlreadyExecuted {
// It canApprove should return false (when listed on creation, self appointed now)
// It canApprove should return false (when listed on creation, appointing someone else now)
// It canApprove should return false (when currently appointed by a signer listed on creation)
Expand Down Expand Up @@ -2204,7 +2204,7 @@ contract EmergencyMultisigTest is AragonTest {
assertEq(address(destinationPlugin), address(optimisticPlugin), "Incorrect destinationPlugin");
}

function test_WhenCallingCanApproveAndApproveBeingExpired() external givenTheProposalExpired {
function test_WhenCallingCanApproveOrApproveBeingExpired() external givenTheProposalExpired {
// It canApprove should return false (when listed on creation, self appointed now)
// It canApprove should return false (when listed on creation, appointing someone else now)
// It canApprove should return false (when currently appointed by a signer listed on creation)
Expand Down
2 changes: 1 addition & 1 deletion test/EncryptionRegistry.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ contract EncryptionRegistryTest is AragonTest {
}

function test_ShouldRevertOnSetPublicKeyIfNotAppointed(address appointedWallet) public {
if (Address.isContract(appointedWallet)) return;
if (Address.isContract(appointedWallet) || Address.isContract(address(uint160(appointedWallet) + 1))) return;

address addrValue;
bytes32 bytesValue;
Expand Down
Loading

0 comments on commit f12b40e

Please sign in to comment.