Skip to main content

reset_runtime_backend

Function reset_runtime_backend 

Source
pub async fn reset_runtime_backend(pool: &PgPool)
Expand description

Initialise the active storage engine to the one selected by the AWA_TEST_ENGINE env var: canonical (default) or queue_storage. awa’s caller-facing contract is engine-invariant, so running the same suite under both values exercises both backends. Tests that pin a specific engine call reset_to_canonical / activate_queue_storage directly.