Try to debug the problem with the existing "test" index in a shared server

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
This commit is contained in:
Martin Tzvetanov Grigorov 2025-06-14 14:07:57 +03:00
parent 2269104337
commit 0598320252
No known key found for this signature in database
GPG Key ID: 3194FD8C1AE300EF

View File

@ -848,19 +848,20 @@ async fn federation_one_index_doesnt_exist() {
async fn search_multiple_indexes_dont_exist() {
let server = Server::new_shared();
let index_1 = server.unique_index_with_prefix("index_1");
let index_2 = server.unique_index_with_prefix("index_2");
let (response, code) = server
.multi_search(json!({"queries": [
{"indexUid" : index_1.uid, "q": "glass"},
{"indexUid": index_2.uid, "q": "pésti"},
{"indexUid" : "test", "q": "glass"},
{"indexUid": "nested", "q": "pésti"},
]}))
.await;
snapshot!(code, @"400 Bad Request");
let (list_response, _code) = server.list_indexes(Some(0), Some(1_000_000)).await;
dbg!(list_response);
snapshot!(json_string!(response), @r###"
{
"message": "Inside `.queries[0]`: Index `index_1-[uuid]` not found.",
"message": "Inside `.queries[0]`: Index `test` not found.",
"code": "index_not_found",
"type": "invalid_request",
"link": "https://docs.meilisearch.com/errors#index_not_found"