mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-18 17:11:15 +08:00
18 lines
400 B
Rust
18 lines
400 B
Rust
// use async_std::prelude::*;
|
|
// use async_std::task;
|
|
// use std::time::Duration;
|
|
|
|
// use serde::{Deserialize, Serialize};
|
|
use http_service::Body;
|
|
|
|
mod common;
|
|
|
|
#[test]
|
|
fn create_index() {
|
|
let mut server = common::setup_server().unwrap();
|
|
|
|
let req = http::Request::get("/health").body(Body::empty()).unwrap();
|
|
let res = server.simulate(req).unwrap();
|
|
assert_eq!(res.status(), 200);
|
|
}
|