From 9baabd614f5bd192e11696df7406b33170653ad5 Mon Sep 17 00:00:00 2001 From: ashhanai Date: Sun, 14 Apr 2024 12:19:14 -0400 Subject: [PATCH] test: fix proposal fuzz test --- test/unit/PWNSimpleLoanProposal.t.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/PWNSimpleLoanProposal.t.sol b/test/unit/PWNSimpleLoanProposal.t.sol index 8295483..2f6a9bc 100644 --- a/test/unit/PWNSimpleLoanProposal.t.sol +++ b/test/unit/PWNSimpleLoanProposal.t.sol @@ -431,7 +431,7 @@ abstract contract PWNSimpleLoanProposal_AcceptProposal_Test is PWNSimpleLoanProp function testFuzz_shouldFail_whenCallerIsNotAllowedAcceptor(address caller) external { address allowedAcceptor = makeAddr("allowedAcceptor"); - vm.assume(caller != allowedAcceptor); + vm.assume(caller != allowedAcceptor && caller != proposer); params.base.allowedAcceptor = allowedAcceptor; params.acceptor = caller; params.signature = _sign(proposerPK, _getProposalHashWith());