Skip to content

cli: make tests faster #45

Open
Open
@2501babe

Description

@2501babe

cli tests spin up a full test validator for every test case, which takes forever to run as we add more cases. it also runs cases in serial because running many test validators at once is cpu murder. we should be fine spinning up one single validator for all tests, and letting every case create its own rpc client and vote account

i noticed a few weeks ago std has LazyLock now, which is a threadsafe OnceCell, basically like lazy_static. could probably use that

(not a priority, do it if we add more program instructions)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions