Do not hard code the non-exiting index name/uid

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
This commit is contained in:
Martin Tzvetanov Grigorov 2025-05-16 15:49:50 +03:00
parent 4cda584b0c
commit 3d130d31c8
No known key found for this signature in database
GPG Key ID: 3194FD8C1AE300EF

View File

@ -54,7 +54,7 @@ async fn error_get_stats_unexisting_index() {
let (response, code) = index.stats().await; let (response, code) = index.stats().await;
let expected_response = json!({ let expected_response = json!({
"message": "Index `DOES_NOT_EXISTS` not found.", "message": format!("Index `{}` not found.", index.uid),
"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"