Skip to content

e2e: convert ChainFixture/NodeFixture descriptive pub fields to accessors #1061

Closed

Description

@yigitdot

Surfaced by the multi-agent review of #1053 (#1028).

ChainFixture and NodeFixture expose construction-time facts about already-running processes as mutable pub fields — e.g. chain.rs: rpc_url, url (two redundant encodings of the same endpoint that must agree), chain_id, addrs, usdc, admin_addr; node.rs: operator_addr, node_id, bind_port, admin_url. None is legitimately mutated after launch(), but a let mut fixture author can reassign one and silently desync the fixture from the live process it describes.

Convert the read-only-after-launch fields to pub fn accessors (returning Copy/&str) so the invariant is unbreakable at zero call-site cost, and collapse rpc_url/url to a single stored form. Deliberately deferred from #1053 (test-fixture crate, low urgency).

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

Metadata

Metadata

Assignees

Labels

prio:low

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions