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
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:
1
migrations/20250402221858_init_migrate.sql
Normal file
1
migrations/20250402221858_init_migrate.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- Add migration script here
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user