From 729c8989d481d111c4457fa583a9445594dd4523 Mon Sep 17 00:00:00 2001 From: MathisGD Date: Fri, 28 Jul 2023 12:25:49 +0200 Subject: [PATCH] test: fix receiver test --- test/forge/Blue.t.sol | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/forge/Blue.t.sol b/test/forge/Blue.t.sol index b7fc4300f..5b500945a 100644 --- a/test/forge/Blue.t.sol +++ b/test/forge/Blue.t.sol @@ -320,6 +320,7 @@ contract BlueTest is Test { } function testBorrowReceiver(uint256 amountLent, uint256 amountBorrowed, address receiver) public { + vm.assume(receiver != address(blue)); amountLent = bound(amountLent, 1, 2 ** 64); amountBorrowed = bound(amountBorrowed, 1, amountLent); @@ -371,6 +372,7 @@ contract BlueTest is Test { } function testWithdrawReceiver(uint256 amountLent, uint256 amountWithdrawn, address receiver) public { + vm.assume(receiver != address(blue)); amountLent = bound(amountLent, 1, 2 ** 64); amountWithdrawn = bound(amountWithdrawn, 1, amountLent); @@ -505,6 +507,7 @@ contract BlueTest is Test { } function testWithdrawCollateral(uint256 amountDeposited, uint256 amountWithdrawn, address receiver) public { + vm.assume(receiver != address(blue)); amountDeposited = bound(amountDeposited, 1, 2 ** 64); amountWithdrawn = bound(amountWithdrawn, 1, amountDeposited);