fedimint_testing_core::db

Function validate_migrations_client

Source
pub async fn validate_migrations_client<F, Fut, T>(
    module: DynClientModuleInit,
    db_prefix: &str,
    validate: F,
) -> Result<()>
where F: Fn(Database, Vec<T::States>, Vec<T::States>) -> Fut, Fut: Future<Output = Result<()>>, T: ClientModule,
Expand description

Validates the database migrations for a client module. First applies all database migrations to the module, including the state machine migrations. Then calls the validate function, including the new active_states and inactive_states, and is expected to confirm the database migrations were successful.