Commit 2d7e3ba8 authored by Maurelian's avatar Maurelian

feat(ctb): Fix typo Livness in test files

parent 410310ea
...@@ -18,7 +18,7 @@ import { LivenessGuard } from "src/Safe/LivenessGuard.sol"; ...@@ -18,7 +18,7 @@ import { LivenessGuard } from "src/Safe/LivenessGuard.sol";
// - Signers may call directly to prove liveness (must be an owner). // - Signers may call directly to prove liveness (must be an owner).
// - Unexpected length of signature data // - Unexpected length of signature data
contract LivnessGuard_TestInit is Test, SafeTestTools { contract LivenessGuard_TestInit is Test, SafeTestTools {
using SafeTestLib for SafeInstance; using SafeTestLib for SafeInstance;
event SignersRecorded(bytes32 indexed txHash, address[] signers); event SignersRecorded(bytes32 indexed txHash, address[] signers);
...@@ -33,14 +33,14 @@ contract LivnessGuard_TestInit is Test, SafeTestTools { ...@@ -33,14 +33,14 @@ contract LivnessGuard_TestInit is Test, SafeTestTools {
} }
} }
contract LivenessGuard_Getters_Test is LivnessGuard_TestInit { contract LivenessGuard_Getters_Test is LivenessGuard_TestInit {
function test_getters_works() external { function test_getters_works() external {
assertEq(address(livenessGuard.safe()), address(safeInstance.safe)); assertEq(address(livenessGuard.safe()), address(safeInstance.safe));
assertEq(livenessGuard.lastLive(address(0)), 0); assertEq(livenessGuard.lastLive(address(0)), 0);
} }
} }
contract LivnessGuard_CheckTx_TestFails is LivnessGuard_TestInit { contract LivenessGuard_CheckTx_TestFails is LivenessGuard_TestInit {
function test_checkTransaction_callerIsNotSafe_revert() external { function test_checkTransaction_callerIsNotSafe_revert() external {
vm.expectRevert("LivenessGuard: only Safe can call this function"); vm.expectRevert("LivenessGuard: only Safe can call this function");
livenessGuard.checkTransaction({ livenessGuard.checkTransaction({
...@@ -59,7 +59,7 @@ contract LivnessGuard_CheckTx_TestFails is LivnessGuard_TestInit { ...@@ -59,7 +59,7 @@ contract LivnessGuard_CheckTx_TestFails is LivnessGuard_TestInit {
} }
} }
contract LivnessGuard_CheckTx_Test is LivnessGuard_TestInit { contract LivenessGuard_CheckTx_Test is LivenessGuard_TestInit {
using SafeTestLib for SafeInstance; using SafeTestLib for SafeInstance;
function test_checkTransaction_succeeds() external { function test_checkTransaction_succeeds() external {
...@@ -82,16 +82,16 @@ contract LivnessGuard_CheckTx_Test is LivnessGuard_TestInit { ...@@ -82,16 +82,16 @@ contract LivnessGuard_CheckTx_Test is LivnessGuard_TestInit {
} }
} }
contract LivnessGuard_CheckAfterExecution_TestFails is LivnessGuard_TestInit { contract LivenessGuard_CheckAfterExecution_TestFails is LivenessGuard_TestInit {
function test_checkAfterExecution_callerIsNotSafe_revert() external { function test_checkAfterExecution_callerIsNotSafe_revert() external {
vm.expectRevert("LivenessGuard: only Safe can call this function"); vm.expectRevert("LivenessGuard: only Safe can call this function");
livenessGuard.checkAfterExecution(bytes32(0), false); livenessGuard.checkAfterExecution(bytes32(0), false);
} }
} }
contract LivnessGuard_CheckAfterExecution_Test is LivnessGuard_TestInit { } contract LivenessGuard_CheckAfterExecution_Test is LivenessGuard_TestInit { }
contract LivenessGuard_ShowLiveness_Test is LivnessGuard_TestInit { contract LivenessGuard_ShowLiveness_Test is LivenessGuard_TestInit {
function test_showLiveness_succeeds() external { function test_showLiveness_succeeds() external {
// Cache the caller // Cache the caller
address caller = safeInstance.owners[0]; address caller = safeInstance.owners[0];
......
...@@ -11,7 +11,7 @@ import "test/safe-tools/SafeTestTools.sol"; ...@@ -11,7 +11,7 @@ import "test/safe-tools/SafeTestTools.sol";
import { LivenessModule } from "src/Safe/LivenessModule.sol"; import { LivenessModule } from "src/Safe/LivenessModule.sol";
import { LivenessGuard } from "src/Safe/LivenessGuard.sol"; import { LivenessGuard } from "src/Safe/LivenessGuard.sol";
contract LivnessModule_TestInit is Test, SafeTestTools { contract LivenessModule_TestInit is Test, SafeTestTools {
using SafeTestLib for SafeInstance; using SafeTestLib for SafeInstance;
event SignersRecorded(bytes32 indexed txHash, address[] signers); event SignersRecorded(bytes32 indexed txHash, address[] signers);
...@@ -39,7 +39,7 @@ contract LivnessModule_TestInit is Test, SafeTestTools { ...@@ -39,7 +39,7 @@ contract LivnessModule_TestInit is Test, SafeTestTools {
} }
} }
contract LivenessModule_Getters_Test is LivnessModule_TestInit { contract LivenessModule_Getters_Test is LivenessModule_TestInit {
function test_getters_works() external { function test_getters_works() external {
assertEq(address(livenessModule.safe()), address(safeInstance.safe)); assertEq(address(livenessModule.safe()), address(safeInstance.safe));
assertEq(address(livenessModule.livenessGuard()), address(livenessGuard)); assertEq(address(livenessModule.livenessGuard()), address(livenessGuard));
...@@ -49,7 +49,7 @@ contract LivenessModule_Getters_Test is LivnessModule_TestInit { ...@@ -49,7 +49,7 @@ contract LivenessModule_Getters_Test is LivnessModule_TestInit {
} }
} }
contract LivenessModule_Get75PercentThreshold_Test is LivnessModule_TestInit { contract LivenessModule_Get75PercentThreshold_Test is LivenessModule_TestInit {
/// @dev check the return values of the get75PercentThreshold function against manually /// @dev check the return values of the get75PercentThreshold function against manually
/// calculated values. /// calculated values.
function test_get75PercentThreshold_Works() external { function test_get75PercentThreshold_Works() external {
...@@ -76,7 +76,7 @@ contract LivenessModule_Get75PercentThreshold_Test is LivnessModule_TestInit { ...@@ -76,7 +76,7 @@ contract LivenessModule_Get75PercentThreshold_Test is LivnessModule_TestInit {
} }
} }
contract LivenessModule_RemoveOwner_Test is LivnessModule_TestInit { contract LivenessModule_RemoveOwner_Test is LivenessModule_TestInit {
function test_removeOwner_oneOwner_succeeds() external { function test_removeOwner_oneOwner_succeeds() external {
uint256 ownersBefore = safeInstance.owners.length; uint256 ownersBefore = safeInstance.owners.length;
vm.warp(block.timestamp + 30 days); vm.warp(block.timestamp + 30 days);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment