mirror of
https://github.com/danbulant/Portfolio
synced 2026-07-05 02:50:47 +00:00
refactor: change env var name to 'TEST_API'
This commit is contained in:
parent
6d8319d784
commit
2b5e8c1075
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ impl sea_orm_rocket::Pool for SeaOrmPool {
|
||||||
|
|
||||||
async fn init(_figment: &Figment) -> Result<Self, Self::Error> {
|
async fn init(_figment: &Figment) -> Result<Self, Self::Error> {
|
||||||
dotenv::dotenv().ok();
|
dotenv::dotenv().ok();
|
||||||
if std::env::var("TEST").is_ok() {
|
if std::env::var("TEST_API").is_ok() {
|
||||||
let conn = get_memory_sqlite_connection().await;
|
let conn = get_memory_sqlite_connection().await;
|
||||||
crate::test::run_test_migrations(&conn).await;
|
crate::test::run_test_migrations(&conn).await;
|
||||||
return Ok(Self { conn });
|
return Ok(Self { conn });
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue