Update test suite to drop database automatically when test is successfull
Some checks failed
Rust / Test (push) Has been cancelled
Rust / Rustfmt (push) Has been cancelled
Rust / Clippy (push) Has been cancelled
Rust / Code coverage (push) Has been cancelled

This commit is contained in:
Alphonse Paix
2025-09-24 02:55:18 +02:00
parent 9ea539e5cc
commit 33281132c6
12 changed files with 128 additions and 148 deletions

View File

@@ -1,8 +1,9 @@
use crate::helpers::TestApp;
use sqlx::PgPool;
#[tokio::test]
async fn health_check_works() {
let app = TestApp::spawn().await;
#[sqlx::test]
async fn health_check_works(connection_pool: PgPool) {
let app = TestApp::spawn(connection_pool).await;
let client = reqwest::Client::new();
let response = client