Saving changes
Some checks failed
Rust Build / Check (pull_request) Successful in 46s
Rust Build / Test Suite (pull_request) Failing after 1m2s
Rust Build / Rustfmt (pull_request) Successful in 28s
Rust Build / Clippy (pull_request) Successful in 50s
Rust Build / build (pull_request) Successful in 1m10s

This commit is contained in:
KD
2025-04-02 18:52:00 -04:00
parent 5749216d7d
commit 4fc15810f4
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1 @@
-- Add migration script here

View File

@@ -35,15 +35,26 @@ async fn setup_database() -> sqlx::PgPool {
.await
.expect("Failed to connect to test database");
/*
let migrator = sqlx::migrate::Migrator::new(std::path::Path::new("./migrations"))
.await
.expect("Failed to create migrator");
migrator.run(&pool).await.expect("Failed to run migrations");
*/
// Seed here if needed
pool
}
#[tokio::test]
async fn test_db_health() {
SETUP.call_once(|| {
tokio::runtime::Runtime::new().unwrap().block_on(async {
setup_database().await;
});
});
}
/*
async fn setup_test(pool: sqlx::PgPool) -> Router {
Router::new()