Skip to content

Commit

Permalink
Fix test stability
Browse files Browse the repository at this point in the history
  • Loading branch information
ScreamingHawk committed Oct 29, 2024
1 parent b4dd918 commit 6f3c60a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions foundry_test/modules/commons/ModuleExtraAuth.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ contract ModuleExtraAuthTest is AdvTest {
uint256 sizeSet = mayBoundArr(_set.length);
uint256 sizeClear = mayBoundArr(_clear.length);

// Ensure no duplicate hashes
for (uint256 i = 0; i < sizeSet; i++) {
for (uint256 j = i + 1; j < sizeSet; j++) {
vm.assume(_set[i].imageHash != _set[j].imageHash);
}
}

imp.setValidImageHash(_base, true);

vm.startPrank(address(imp));
Expand Down

0 comments on commit 6f3c60a

Please sign in to comment.