From 7c37b501be9b63373cab6daa85afe89a50d783a3 Mon Sep 17 00:00:00 2001 From: "Santhosh Reddy Vootukuri (SUNNY) (from Dev Box)" Date: Thu, 8 Aug 2024 10:26:39 -0700 Subject: [PATCH] Changes to index and expected_response as per feedback --- meilisearch/tests/index/stats.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meilisearch/tests/index/stats.rs b/meilisearch/tests/index/stats.rs index 274a0ab17..e2a96e101 100644 --- a/meilisearch/tests/index/stats.rs +++ b/meilisearch/tests/index/stats.rs @@ -47,11 +47,11 @@ async fn stats() { #[actix_rt::test] async fn error_get_stats_unexisting_index() { - let server = Server::new_shared().await; - let (response, code) = server.unique_index().stats().await; + let index = shared_does_not_exists_index(); + let (response, code) = index.stats().await; let expected_response = json!({ - "message": "Index `test` not found.", + "message": "Index `DOES_NOT_EXISTS` not found.", "code": "index_not_found", "type": "invalid_request", "link": "https://docs.meilisearch.com/errors#index_not_found"