From 575b7b7a0b7554ef9df3b8aec18e2330baa8a5a4 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Tue, 27 Aug 2024 17:14:10 +0200 Subject: [PATCH] Fix tests --- meilisearch/tests/documents/get_documents.rs | 14 +++++++++++-- meilisearch/tests/vector/mod.rs | 21 +++++++++++++++++--- 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/meilisearch/tests/documents/get_documents.rs b/meilisearch/tests/documents/get_documents.rs index efe4cf8e9..ccf31e764 100644 --- a/meilisearch/tests/documents/get_documents.rs +++ b/meilisearch/tests/documents/get_documents.rs @@ -644,7 +644,12 @@ async fn get_document_with_vectors() { { "id": 1, "name": "echo", - "_vectors": {} + "_vectors": { + "manual": { + "embeddings": [], + "regenerate": false + } + } } ], "offset": 0, @@ -700,7 +705,12 @@ async fn get_document_with_vectors() { }, { "name": "echo", - "_vectors": {} + "_vectors": { + "manual": { + "embeddings": [], + "regenerate": false + } + } } ], "offset": 0, diff --git a/meilisearch/tests/vector/mod.rs b/meilisearch/tests/vector/mod.rs index 0343ab785..44e815585 100644 --- a/meilisearch/tests/vector/mod.rs +++ b/meilisearch/tests/vector/mod.rs @@ -119,7 +119,12 @@ async fn add_remove_user_provided() { { "id": 1, "name": "echo", - "_vectors": {} + "_vectors": { + "manual": { + "embeddings": [], + "regenerate": false + } + } } ], "offset": 0, @@ -141,7 +146,12 @@ async fn add_remove_user_provided() { { "id": 1, "name": "echo", - "_vectors": {} + "_vectors": { + "manual": { + "embeddings": [], + "regenerate": false + } + } } ], "offset": 0, @@ -577,7 +587,12 @@ async fn add_remove_one_vector_4588() { { "id": 0, "name": "kefir", - "_vectors": {} + "_vectors": { + "manual": { + "embeddings": [], + "regenerate": false + } + } } ], "offset": 0,