From c9f04ef957ee498f71ddafb99fab14266a110e16 Mon Sep 17 00:00:00 2001 From: Joe Bellus Date: Sat, 12 Feb 2022 02:58:09 -0500 Subject: [PATCH] Changed test database to memory --- src/api/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api/mod.rs b/src/api/mod.rs index a84f2e8..8a6b1bd 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -97,9 +97,8 @@ pub mod test_prelude { /// Sets up a testing state with an in-memory database and creates the scheme. pub async fn setup_state() -> Result> { - let pool = sqlx::SqlitePool::connect(":memory:").await?; + let pool = sqlx::SqlitePool::connect("sqlite::memory:").await?; sqlx::migrate!("./migrations").run(&pool).await?; - tracing::info!("Database migrated"); let db = sea_orm::SqlxSqliteConnector::from_sqlx_sqlite_pool(pool);