Skip to content

Commit

Permalink
test: add integration
Browse files Browse the repository at this point in the history
  • Loading branch information
0xShaito committed Nov 28, 2024
1 parent af57db2 commit 1a17318
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions solidity/test/integration/ReleaseUnutilizedResponse.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 1a17318

Please sign in to comment.