fix(health): move test to dedicated test mod

This commit is contained in:
2026-06-02 01:05:31 +02:00
parent 84cf3359aa
commit 9c4532f940
+5 -2
View File
@@ -28,11 +28,14 @@ impl HealthApi {
} }
} }
#[tokio::test] #[cfg(test)]
async fn health_check_works() { mod tests {
#[tokio::test]
async fn health_check_works() {
let app = crate::get_test_app(); let app = crate::get_test_app();
let cli = poem::test::TestClient::new(app); let cli = poem::test::TestClient::new(app);
let resp = cli.get("/api/health").send().await; let resp = cli.get("/api/health").send().await;
resp.assert_status_is_ok(); resp.assert_status_is_ok();
resp.assert_text("").await; resp.assert_text("").await;
}
} }