Skip to content

[tests] Unify test utils of authority  #974

Closed
@asonnino

Description

@asonnino

We currently have a bunch of test utilities to spawn new authorities (with or without initial objects) scattered around the codebase. a few examples:

fn init_state_parameters() -> (Committee, SuiAddress, KeyPair, Arc<AuthorityStore>) {

async fn init_state() -> AuthorityState {

pub async fn init_state_with_objects<I: IntoIterator<Item = Object>>(objects: I) -> AuthorityState {

These utilities are not only useful for `authority_tests.rs', they are also re-used in other test files. It would be nice to regroup them all in the crate called 'test-utils'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions