test(api): assert readiness status field on happy path
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user