From 1a173187132308e26e77fb111e2e048eeb7e9e2b Mon Sep 17 00:00:00 2001 From: shaito Date: Thu, 28 Nov 2024 12:44:32 -0300 Subject: [PATCH] test: add integration --- .../test/integration/ReleaseUnutilizedResponse.t.sol | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/solidity/test/integration/ReleaseUnutilizedResponse.t.sol b/solidity/test/integration/ReleaseUnutilizedResponse.t.sol index 536f11b..3ad2942 100644 --- a/solidity/test/integration/ReleaseUnutilizedResponse.t.sol +++ b/solidity/test/integration/ReleaseUnutilizedResponse.t.sol @@ -60,6 +60,15 @@ contract Integration_ReleaseUnutilizedResponse is IntegrationBase { // Check: proposer received their bond back? assertEq(_accountingExtension.balanceOf(proposer, usdc), _expectedBondSize); + + // The response is marked as released + assertTrue(_responseModule.responseReleased(_getId(mockResponse))); + + // Trying to release again reverts + vm.expectRevert(IBondedResponseModule.BondedResponseModule_ResponseAlreadyReleased.selector); + + vm.prank(proposer); + _responseModule.releaseUnutilizedResponse(mockRequest, mockResponse); } /**