Skip to content

Commit

Permalink
the official site supports only sqlite
Browse files Browse the repository at this point in the history
Ignore the DATABASE_URL env var in official website tests
lovasoa committed Jun 22, 2024

Verified

This commit was signed with the committer’s verified signature.
lovasoa Ophir LOJKINE
1 parent 24191c5 commit 31bd1f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/index.rs
Original file line number Diff line number Diff line change
@@ -417,6 +417,7 @@ async fn make_app_data_for_official_website() -> actix_web::web::Data<AppState>
let config_path = std::path::Path::new("examples/official-site/sqlpage");
let mut app_config = sqlpage::app_config::load_from_directory(config_path).unwrap();
app_config.web_root = PathBuf::from("examples/official-site");
app_config.database_url = "sqlite::memory:".to_string(); // the official site supports only sqlite. Ignore the DATABASE_URL env var
let app_state = make_app_data_from_config(app_config.clone()).await;
webserver::database::migrations::apply(&app_config, &app_state.db)
.await

0 comments on commit 31bd1f5

Please sign in to comment.