meilisearch/meilisearch-http/tests/health.rs

12 lines
258 B
Rust
Raw Permalink Normal View History

2020-01-16 00:56:07 +08:00
mod common;
2020-04-16 17:09:47 +08:00
#[actix_rt::test]
async fn test_healthyness() {
2020-03-04 21:18:07 +08:00
let mut server = common::Server::with_uid("movies");
2020-01-16 00:56:07 +08:00
// Check that the server is healthy
2020-04-16 17:09:47 +08:00
let (_response, status_code) = server.get_health().await;
assert_eq!(status_code, 204);
2020-01-16 00:56:07 +08:00
}