Skip to main content

install_test_pool

Function install_test_pool 

Source
pub fn install_test_pool(pool: PgPool) -> TestPoolGuard
Expand description

Installs pool into DB_POOL until the returned guard drops.

A pool left in DB_POOL outlives its test and keeps a permit of sqlx’s process-wide test master pool, deadlocking cargo test.