Skip to content

Stale comments in incentive defer swap tests on "this alloy build ships no Asserter" #1347

Closed

Description

@yigitdot

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.

Activity

  1. added
    kind:test
    rust
    prio:low
    on Jul 21, 2026
  2. self-assigned this
    on Jul 21, 2026
  3. thiras commented on Jul 21, 2026

    @thiras
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:testprio:lowrust

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions