mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-05 12:38:55 +01:00
6465a3f549
1. NEEDS to ensure that service is completely up if it returns 204 2. DOES NOT block service process (write transaction) 3. NEEDS to use the less network bandwidth as possible when it's triggered 4. NEEDS to use the less service resources as possible when it's triggered 5. DOES NOT NEED any authentication 6. MAY be named /health
12 lines
258 B
Rust
12 lines
258 B
Rust
mod common;
|
|
|
|
#[actix_rt::test]
|
|
async fn test_healthyness() {
|
|
let mut server = common::Server::with_uid("movies");
|
|
|
|
// Check that the server is healthy
|
|
|
|
let (_response, status_code) = server.get_health().await;
|
|
assert_eq!(status_code, 204);
|
|
}
|