mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
run cargo fmt
This commit is contained in:
parent
9c0497c419
commit
c276dda305
18 changed files with 315 additions and 179 deletions
|
@ -18,9 +18,13 @@ fn test_healthyness() {
|
|||
|
||||
let body = json!({
|
||||
"health": false,
|
||||
}).to_string().into_bytes();
|
||||
})
|
||||
.to_string()
|
||||
.into_bytes();
|
||||
|
||||
let req = http::Request::put("/health").body(Body::from(body)).unwrap();
|
||||
let req = http::Request::put("/health")
|
||||
.body(Body::from(body))
|
||||
.unwrap();
|
||||
let res = server.simulate(req).unwrap();
|
||||
assert_eq!(res.status(), 200);
|
||||
|
||||
|
@ -34,9 +38,13 @@ fn test_healthyness() {
|
|||
|
||||
let body = json!({
|
||||
"health": true,
|
||||
}).to_string().into_bytes();
|
||||
})
|
||||
.to_string()
|
||||
.into_bytes();
|
||||
|
||||
let req = http::Request::put("/health").body(Body::from(body)).unwrap();
|
||||
let req = http::Request::put("/health")
|
||||
.body(Body::from(body))
|
||||
.unwrap();
|
||||
let res = server.simulate(req).unwrap();
|
||||
assert_eq!(res.status(), 200);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue