Update test suite to drop database automatically when test is successfull
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user