From 1d2efdeea4451b420655300af3f4afea6e63a851 Mon Sep 17 00:00:00 2001 From: 0xdavinchee <0xdavinchee@gmail.com> Date: Thu, 25 Jan 2024 14:04:36 +0200 Subject: [PATCH] fix flakey test --- .../agreements/gdav1/GeneralDistributionAgreement.t.sol | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/ethereum-contracts/test/foundry/agreements/gdav1/GeneralDistributionAgreement.t.sol b/packages/ethereum-contracts/test/foundry/agreements/gdav1/GeneralDistributionAgreement.t.sol index 9d9b80e727..166252c666 100644 --- a/packages/ethereum-contracts/test/foundry/agreements/gdav1/GeneralDistributionAgreement.t.sol +++ b/packages/ethereum-contracts/test/foundry/agreements/gdav1/GeneralDistributionAgreement.t.sol @@ -243,11 +243,10 @@ contract GeneralDistributionAgreementV1IntegrationTest is FoundrySuperfluidTeste vm.stopPrank(); } - function testRevertIfNotAdminOrGDAUpdatesMemberUnitsViaPool(address caller) public { - vm.assume(caller != alice); - vm.startPrank(caller); + function testRevertIfNotAdminOrGDAUpdatesMemberUnitsViaPool() public { + vm.startPrank(bob); vm.expectRevert(ISuperfluidPool.SUPERFLUID_POOL_NOT_POOL_ADMIN_OR_GDA.selector); - freePool.updateMemberUnits(caller, 69); + freePool.updateMemberUnits(bob, 69); vm.stopPrank(); }