You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
incentive: stale comment claims this alloy build ships no Asserter/MockProvider, deferring real test coverage #1356
kind:testTest coverage, flakes, fixtures or the e2e harnessprio:lowWhen convenientrustDependabot: a Cargo update; use area: labels for Rust code otherwise
// swap *reverts on-chain*, and the two follow-up resets are then observed —// needs an anvil / mock-transport harness this crate does not have (no anvil// dev-dep, and this alloy build ships no `Asserter`/`MockProvider`).// Deferred rather than faked.
The parenthetical is false. alloy::providers::mock::Asserter + ProviderBuilder::new().connect_mocked_client(...) is available in the pinned alloy version and already used in six places:
This is a comment that caused a coverage gap rather than merely describing one: the stated reason for deferring the balancer swap-revert test does not hold, so the test was skipped on a false premise. It also misinformed the review of #1353 — I took it at face value when scoping that work and assumed no mock infrastructure existed, until a reviewer checked. A wrong claim in a comment that justifies not writing a test will keep doing that to whoever reads it next.
Fix
Correct or delete the parenthetical.
Re-evaluate whether the deferred swap-revert coverage is now writable with Asserter. The pattern that fits is a static, ordered response queue — see resumable_watcher.rs:994 for the idiom, and crates/cli/src/commands/unbond.rsmod plan_computation (added in feat(cli): add decdn node unbond + G-NODE-06 journey (#1033) #1353) for a contract-view example where queueing exact response counts doubles as an assertion about which reads happen.
Duplicate of #1347 — same two comments (swap_uniswap.rs / swap_balancer.rs), same false parenthetical about this alloy build shipping no Asserter/MockProvider.
Closing in favour of #1347, which stays open for the remaining half of the work. Part 1 (correcting the comments) landed in #1358; part 2 (actually writing the deferred swap-revert tests, now that the stated reason for skipping them is gone) is still to do.
Worth preserving from this issue, since #1347 doesn't say it as directly: the framing that this was a comment that caused a coverage gap rather than describing one — the test was skipped on a premise that was never true. That is why the fix corrects the claim in place rather than just deleting the note.
kind:testTest coverage, flakes, fixtures or the e2e harnessprio:lowWhen convenientrustDependabot: a Cargo update; use area: labels for Rust code otherwise
Activity
thiras commentedon Jul 21, 2026
Duplicate of #1347 — same two comments (
swap_uniswap.rs/swap_balancer.rs), same false parenthetical about this alloy build shipping noAsserter/MockProvider.Closing in favour of #1347, which stays open for the remaining half of the work. Part 1 (correcting the comments) landed in #1358; part 2 (actually writing the deferred swap-revert tests, now that the stated reason for skipping them is gone) is still to do.
Worth preserving from this issue, since #1347 doesn't say it as directly: the framing that this was a comment that caused a coverage gap rather than describing one — the test was skipped on a premise that was never true. That is why the fix corrects the claim in place rather than just deleting the note.
fix: batch seven review follow-ups (#1342, #1343, #1344, #1345, #1347, …