Skip to content

Commit d9e9489

Browse files
committed
test: add base case for adjustManagement so that it succeeds even for 0 input
1 parent 62d5735 commit d9e9489

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/integration/Euler.t.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,11 @@ contract EulerIntegrationTest is BaseTest {
254254
assertEq(_manager.getBalance(_pair, IERC20(address(_tokenA))), 0);
255255
}
256256

257+
function testAdjustManagement_ZeroAmount() public allNetworks allPairs {
258+
// act - should not revert even if amount is zero
259+
_manager.adjustManagement(_pair, 0, 0);
260+
}
261+
257262
function testAdjustManagement_NotOwner() public allNetworks allPairs {
258263
// act & assert
259264
vm.prank(_alice);

0 commit comments

Comments
 (0)