Skip to content

Commit

Permalink
test: fix test for batch
Browse files Browse the repository at this point in the history
  • Loading branch information
smol-ninja committed Nov 1, 2024
1 parent 336fe08 commit 5713f40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions test/core/integration/concrete/lockup/batch/batch.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import { Errors } from "src/core/libraries/Errors.sol";
import { Integration_Test } from "./../../../Integration.t.sol";

abstract contract Batch_Integration_Concrete_Test is Integration_Test {
function test_WhenCallFunctionNotExist() external {
function test_RevertWhen_CallFunctionNotExist() external {
bytes[] memory calls = new bytes[](1);
calls[0] = abi.encodeCall(dai.balanceOf, (users.recipient));
calls[0] = abi.encodeWithSignature("nonExistentFunction()");

vm.expectRevert();
lockup.batch(calls);
}

Expand Down
2 changes: 1 addition & 1 deletion test/core/integration/concrete/lockup/batch/batch.tree
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Batch_Integration_Concrete_Test
├── when call function not exist
│ └── it should do nothing
│ └── it should revert
└── when call function exists
├── when data invalid
│ └── it should revert
Expand Down

0 comments on commit 5713f40

Please sign in to comment.