mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-02-21 18:15:29 +08:00
Changes to index and expected_response as per feedback
This commit is contained in:
parent
fdfb7c28c8
commit
7c37b501be
@ -47,11 +47,11 @@ async fn stats() {
|
|||||||
|
|
||||||
#[actix_rt::test]
|
#[actix_rt::test]
|
||||||
async fn error_get_stats_unexisting_index() {
|
async fn error_get_stats_unexisting_index() {
|
||||||
let server = Server::new_shared().await;
|
let index = shared_does_not_exists_index();
|
||||||
let (response, code) = server.unique_index().stats().await;
|
let (response, code) = index.stats().await;
|
||||||
|
|
||||||
let expected_response = json!({
|
let expected_response = json!({
|
||||||
"message": "Index `test` not found.",
|
"message": "Index `DOES_NOT_EXISTS` not found.",
|
||||||
"code": "index_not_found",
|
"code": "index_not_found",
|
||||||
"type": "invalid_request",
|
"type": "invalid_request",
|
||||||
"link": "https://docs.meilisearch.com/errors#index_not_found"
|
"link": "https://docs.meilisearch.com/errors#index_not_found"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user