refactor: change env var name to 'TEST_API'

This commit is contained in:
Sebastian Pravda 2022-11-20 15:46:32 +01:00
parent 6d8319d784
commit 2b5e8c1075
No known key found for this signature in database
GPG key ID: F3BC84F08EFA3F57

View file

@ -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 });