Changed test database to memory
This commit is contained in:
parent
2a1d0737a0
commit
c9f04ef957
|
@ -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<actix_web::web::Data<AppState>> {
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue