Skip to content

Commit 31bd1f5

Browse files
committed
the official site supports only sqlite
Ignore the DATABASE_URL env var in official website tests
1 parent 24191c5 commit 31bd1f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/index.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ async fn make_app_data_for_official_website() -> actix_web::web::Data<AppState>
417417
let config_path = std::path::Path::new("examples/official-site/sqlpage");
418418
let mut app_config = sqlpage::app_config::load_from_directory(config_path).unwrap();
419419
app_config.web_root = PathBuf::from("examples/official-site");
420+
app_config.database_url = "sqlite::memory:".to_string(); // the official site supports only sqlite. Ignore the DATABASE_URL env var
420421
let app_state = make_app_data_from_config(app_config.clone()).await;
421422
webserver::database::migrations::apply(&app_config, &app_state.db)
422423
.await

0 commit comments

Comments
 (0)