From 95c8ab2777fa69243a56a5f4d1ce8ce629d707f3 Mon Sep 17 00:00:00 2001 From: katzman Date: Thu, 28 Mar 2024 13:06:49 -0700 Subject: [PATCH] Fix flaky test by removing address(mock) from fuzz --- test/MultiOwnable/RemoveOwnerAtIndex.t.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/MultiOwnable/RemoveOwnerAtIndex.t.sol b/test/MultiOwnable/RemoveOwnerAtIndex.t.sol index 390f544..33c51aa 100644 --- a/test/MultiOwnable/RemoveOwnerAtIndex.t.sol +++ b/test/MultiOwnable/RemoveOwnerAtIndex.t.sol @@ -25,7 +25,7 @@ contract RemoveOwnerAtIndexTest is MultiOwnableTestBase { } function testRevertsIfCalledByNonOwner(address a) public { - vm.assume(a != owner1Address); + vm.assume(a != owner1Address && a != address(mock)); vm.startPrank(a); vm.expectRevert(MultiOwnable.Unauthorized.selector); mock.removeOwnerAtIndex(_index(), abi.encode(a));