From 3d130d31c882ba5c4217a0cad71cb778e05a65b6 Mon Sep 17 00:00:00 2001 From: Martin Tzvetanov Grigorov Date: Fri, 16 May 2025 15:49:50 +0300 Subject: [PATCH] Do not hard code the non-exiting index name/uid Signed-off-by: Martin Tzvetanov Grigorov --- crates/meilisearch/tests/index/stats.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/meilisearch/tests/index/stats.rs b/crates/meilisearch/tests/index/stats.rs index 40e3d312c..de594155b 100644 --- a/crates/meilisearch/tests/index/stats.rs +++ b/crates/meilisearch/tests/index/stats.rs @@ -54,7 +54,7 @@ async fn error_get_stats_unexisting_index() { let (response, code) = index.stats().await; let expected_response = json!({ - "message": "Index `DOES_NOT_EXISTS` not found.", + "message": format!("Index `{}` not found.", index.uid), "code": "index_not_found", "type": "invalid_request", "link": "https://docs.meilisearch.com/errors#index_not_found"