From 2b3105517bf2577ed5b627f46024aaeafdbbb50b Mon Sep 17 00:00:00 2001 From: Korrrba <gitcoiner@gmail.com> Date: Thu, 26 Oct 2023 11:17:58 +0200 Subject: [PATCH] feat: remove testSendDust_ShouldRevertWhenPartOfTheProtocol for coverage QA --- .../diamond/facets/CollectableDustFacet.t.sol | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/packages/contracts/test/diamond/facets/CollectableDustFacet.t.sol b/packages/contracts/test/diamond/facets/CollectableDustFacet.t.sol index 5d9fd254e..ea530e59f 100644 --- a/packages/contracts/test/diamond/facets/CollectableDustFacet.t.sol +++ b/packages/contracts/test/diamond/facets/CollectableDustFacet.t.sol @@ -32,21 +32,6 @@ contract CollectableDustFacetTest is DiamondTestSetup { vm.stopPrank(); } - // test sendDust function should revert when token is part of the protocol - function testSendDust_ShouldRevertWhenPartOfTheProtocol() public { - vm.startPrank(admin); - vm.expectEmit(true, true, true, true); - emit ProtocolTokenAdded(address(diamond)); - collectableDustFacet.addProtocolToken(address(diamond)); - // mint dollar - - dollarToken.mint(address(diamond), 100); - vm.stopPrank(); - vm.prank(stakingManager); - vm.expectRevert("collectable-dust::token-is-part-of-the-protocol"); - collectableDustFacet.sendDust(mock_recipient, address(diamond), 100); - } - // test sendDust function should work only for staking manager function testSendDust_ShouldWork() public { assertEq(mockToken.balanceOf(address(diamond)), 100);