浏览代码

correct name for test methods

0xfirefist 1 年之前
父节点
当前提交
995bacc633
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      target_chains/ethereum/contracts/forge-test/EntropyAuthorized.t.sol

+ 4 - 4
target_chains/ethereum/contracts/forge-test/EntropyAuthorized.t.sol

@@ -129,25 +129,25 @@ contract EntropyAuthorized is Test, EntropyTestUtils {
         random.transferOwnership(owner2);
     }
 
-    function testExpectRevertTransferToByUnauthorized() public {
+    function testExpectRevertRequestOwnershipTransferByUnauthorized() public {
         vm.expectRevert("Ownable: caller is not the owner");
         vm.prank(provider1);
         random.requestOwnershipTransfer(owner2);
     }
 
-    function testExpectRevertTransferToByAdmin() public {
+    function testExpectRevertRequestOwnershipTransferByAdmin() public {
         vm.expectRevert("Ownable: caller is not the owner");
         vm.prank(admin);
         random.requestOwnershipTransfer(owner2);
     }
 
-    function testTransferToByOwner() public {
+    function testRequestOwnershipTransferByOwner() public {
         vm.prank(owner);
         random.requestOwnershipTransfer(owner2);
         assertEq(random.getNextOwner(), owner2);
     }
 
-    function testTransferAndClaimOwnership() public {
+    function testRequestAndAcceptOwnershipTransfer() public {
         vm.prank(owner);
         random.requestOwnershipTransfer(owner2);
         assertEq(random.getNextOwner(), owner2);