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)
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
LazyLocknow, which is a threadsafeOnceCell, basically likelazy_static. could probably use that(not a priority, do it if we add more program instructions)