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
Stale comments in incentive defer swap tests on "this alloy build ships no Asserter" #1347
kind:testTest coverage, flakes, fixtures or the e2e harnessprio:lowWhen convenientrustDependabot: a Cargo update; use area: labels for Rust code otherwise
crates/incentive/src/swap_uniswap.rs:510 and crates/incentive/src/swap_balancer.rs:511 both defer test coverage with a comment claiming this alloy build ships no Asserter/MockProvider.
That is no longer true. alloy 2.2.0 re-exports alloy_transport::mock unconditionally, and three modules in decdn-node already use it:
crates/node/src/chain_events/shared_head.rs:173 — Asserter::new() + ProviderBuilder::new().connect_mocked_client(...), with asserter.read_q().len() as an RPC-count assertion
crates/node/src/blacklist_watcher.rs:894,947,1088
Review of #1341 used the same pattern to get behavioral coverage of the registry retry loop, so the approach is proven in this workspace.
Two things to do: correct the comments, and reassess whether the deferred swap tests are now cheap enough to write.
Note the batch's review round revised the framing of this issue's premise where it was wrong — see the PR description and the ADR/NatSpec updates for the corrected account.
kind:testTest coverage, flakes, fixtures or the e2e harnessprio:lowWhen convenientrustDependabot: a Cargo update; use area: labels for Rust code otherwise
Activity
fix: batch seven review follow-ups (#1342, #1343, #1344, #1345, #1347, …
fix: batch six review follow-ups (#1346, #1347, #1348, #1349, #1359, #…
thiras commentedon Jul 21, 2026
Fixed in #1362 (merged as e73fa04).
Note the batch's review round revised the framing of this issue's premise where it was wrong — see the PR description and the ADR/NatSpec updates for the corrected account.