fedimint_testing_core::db

Function validate_migrations_server

Source
pub async fn validate_migrations_server<F, Fut>(
    module: DynServerModuleInit,
    db_prefix: &str,
    validate: F,
) -> Result<()>
where F: Fn(Database) -> Fut, Fut: Future<Output = Result<()>>,
Expand description

Validates the database migrations for a server module. First applies all database migrations to the module, then calls the validate which should confirm the database migrations were successful.