test(api): assert readiness status field on happy path

This commit is contained in:
2026-06-02 01:02:22 +02:00
parent b9acc03761
commit b8cea49427
+1
View File
@@ -48,6 +48,7 @@ async fn ready_reports_database_true(pool: PgPool) {
let bytes = resp.into_body().collect().await.unwrap().to_bytes(); let bytes = resp.into_body().collect().await.unwrap().to_bytes();
let json: serde_json::Value = serde_json::from_slice(&bytes).unwrap(); let json: serde_json::Value = serde_json::from_slice(&bytes).unwrap();
assert_eq!(json["database"], true); assert_eq!(json["database"], true);
assert_eq!(json["status"], "ok");
} }
#[sqlx::test] #[sqlx::test]