From fca9fe39b35ab513ec3d505a58c34d476ee443e4 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Wed, 12 Jun 2024 14:49:38 +0200 Subject: [PATCH] Update test snapshots --- index-scheduler/src/lib.rs | 6 ++---- meilisearch/tests/vector/settings.rs | 9 ++------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/index-scheduler/src/lib.rs b/index-scheduler/src/lib.rs index e2a6f03a0..fd7f29f6c 100644 --- a/index-scheduler/src/lib.rs +++ b/index-scheduler/src/lib.rs @@ -5579,7 +5579,6 @@ mod tests { .collect::>(); snapshot!(serde_json::to_string(&documents).unwrap(), @r###"[{"id":0,"doggo":"kefir"}]"###); let conf = index.embedding_configs(&rtxn).unwrap(); - // TODO: Here the user provided vectors should NOT contains 1 snapshot!(format!("{conf:#?}"), @r###" [ IndexEmbeddingConfig { @@ -5595,7 +5594,7 @@ mod tests { template: "{% for field in fields %} {{ field.name }}: {{ field.value }}\n{% endfor %}", }, }, - user_provided: RoaringBitmap<[0, 1]>, + user_provided: RoaringBitmap<[0]>, }, ] "###); @@ -5620,7 +5619,6 @@ mod tests { .collect::>(); snapshot!(serde_json::to_string(&documents).unwrap(), @"[]"); let conf = index.embedding_configs(&rtxn).unwrap(); - // TODO: Here the user provided vectors should contains nothing snapshot!(format!("{conf:#?}"), @r###" [ IndexEmbeddingConfig { @@ -5636,7 +5634,7 @@ mod tests { template: "{% for field in fields %} {{ field.name }}: {{ field.value }}\n{% endfor %}", }, }, - user_provided: RoaringBitmap<[0, 1]>, + user_provided: RoaringBitmap<[]>, }, ] "###); diff --git a/meilisearch/tests/vector/settings.rs b/meilisearch/tests/vector/settings.rs index 6b93f001e..e11f4368f 100644 --- a/meilisearch/tests/vector/settings.rs +++ b/meilisearch/tests/vector/settings.rs @@ -43,7 +43,7 @@ async fn update_embedder() { { "uid": 1, "indexUid": "doggo", - "status": "failed", + "status": "succeeded", "type": "settingsUpdate", "canceledBy": null, "details": { @@ -54,12 +54,7 @@ async fn update_embedder() { } } }, - "error": { - "message": "`.embedders.manual`: Field `model` unavailable for source `userProvided` (only available for sources: `huggingFace`, `openAi`, `ollama`). Available fields: `source`, `dimensions`, `distribution`", - "code": "invalid_settings_embedders", - "type": "invalid_request", - "link": "https://docs.meilisearch.com/errors#invalid_settings_embedders" - }, + "error": null, "duration": "[duration]", "enqueuedAt": "[date]", "startedAt": "[date]",