fix(health): move test to dedicated test mod

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