Skip to content

Commit

Permalink
Remove assertions, the state isn't changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
wshino committed Aug 6, 2024
1 parent d0b56b5 commit 4850ef3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions test/unit/EmailRecoveryManager/completeRecovery.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,6 @@ contract EmailRecoveryManager_completeRecovery_Test is UnitBase {
assertEq(recoveryRequest.executeBefore, 0);
assertEq(recoveryRequest.currentWeight, 0);
assertEq(recoveryRequest.calldataHash, "");

bool isActivated = emailRecoveryModule.isActivated(accountAddress);
assertTrue(isActivated);
}

function test_CompleteRecovery_SucceedsAlmostExpiry() public {
Expand All @@ -158,8 +155,5 @@ contract EmailRecoveryManager_completeRecovery_Test is UnitBase {
assertEq(recoveryRequest.executeBefore, 0);
assertEq(recoveryRequest.currentWeight, 0);
assertEq(recoveryRequest.calldataHash, "");

bool isActivated = emailRecoveryModule.isActivated(accountAddress);
assertTrue(isActivated);
}
}
6 changes: 0 additions & 6 deletions test/unit/EmailRecoveryManager/updateRecoveryConfig.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ contract EmailRecoveryManager_updateRecoveryConfig_Test is UnitBase {
recoveryConfig = emailRecoveryModule.getRecoveryConfig(accountAddress);
assertEq(recoveryConfig.delay, newDelay);
assertEq(recoveryConfig.expiry, newExpiry);

bool isActivated = emailRecoveryModule.isActivated(accountAddress);
assertTrue(isActivated);
}

function test_UpdateRecoveryConfig_Succeeds() public {
Expand All @@ -120,8 +117,5 @@ contract EmailRecoveryManager_updateRecoveryConfig_Test is UnitBase {
recoveryConfig = emailRecoveryModule.getRecoveryConfig(accountAddress);
assertEq(recoveryConfig.delay, newDelay);
assertEq(recoveryConfig.expiry, newExpiry);

bool isActivated = emailRecoveryModule.isActivated(accountAddress);
assertTrue(isActivated);
}
}

0 comments on commit 4850ef3

Please sign in to comment.