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