mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-18 14:01:04 +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> {
|
||||
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;
|
||||
crate::test::run_test_migrations(&conn).await;
|
||||
return Ok(Self { conn });
|
||||
|
|
|
|||
Loading…
Reference in a new issue