mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Merge #1291
1291: Use 200 status code for healthcheck endpoint r=MarinPostma a=irevoire closes #1282 Co-authored-by: tamo <tamo@meilisearch.com> Co-authored-by: Irevoire <tamo@meilisearch.com>
This commit is contained in:
commit
89d13706f1
2 changed files with 5 additions and 3 deletions
|
@ -6,6 +6,7 @@ async fn test_healthyness() {
|
|||
|
||||
// Check that the server is healthy
|
||||
|
||||
let (_response, status_code) = server.get_health().await;
|
||||
assert_eq!(status_code, 204);
|
||||
let (response, status_code) = server.get_health().await;
|
||||
assert_eq!(status_code, 200);
|
||||
assert_eq!(response["status"], "available");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue