Skip to content

Commit aff3856

Browse files
committed
fix: coverage
1 parent e9975f3 commit aff3856

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/foundry.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ jobs:
193193
FOUNDRY_PROFILE=coverage \
194194
FOUNDRY_CACHE=true \
195195
FOUNDRY_CACHE_PATH=cache \
196-
forge coverage --report lcov --report summary --no-match-coverage "script|test" -j $(nproc) -vvv
196+
forge coverage --report lcov --report summary --no-match-coverage "script|test" -j $(nproc) --no-match-test test_noCoverage
197197
genhtml -q -o report ./lcov.info
198198
199199
# Upload coverage report as artifact before potential failure

src/test/unit/AllocationManagerUnit.t.sol

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4416,7 +4416,8 @@ contract AllocationManagerUnitTests_migrateSlashers is AllocationManagerUnitTest
44164416
assertEq(reads.length, 3, "should have 3 reads");
44174417
}
44184418

4419-
function test_noop_slasherAlreadySet() public {
4419+
/// @dev This test is ignored by coverage due to an extra vm.access call
4420+
function test_noCoverage_noop_slasherAlreadySet() public {
44204421
// Register the operatorSet
44214422
OperatorSet memory operatorSet = OperatorSet(defaultAVS, 1);
44224423
CreateSetParams[] memory createSetParams = new CreateSetParams[](1);
@@ -4506,7 +4507,8 @@ contract AllocationManagerUnitTests_migrateSlashers is AllocationManagerUnitTest
45064507
_assertNothingPending(defaultOperatorSet);
45074508
}
45084509

4509-
function test_cannotMigrateMultipleTimes() public {
4510+
/// @dev This test is ignored by coverage due to an extra vm.access call
4511+
function test_noCoverage_cannotMigrateMultipleTimes() public {
45104512
// Migrate the slasher
45114513
allocationManager.migrateSlashers(defaultOperatorSet.toArray());
45124514
assertEq(allocationManager.getSlasher(defaultOperatorSet), defaultAVS, "slasher should be the defaultAVS");

0 commit comments

Comments
 (0)