From 606e108420d9474fe7295d662c4bb4e2c7882f81 Mon Sep 17 00:00:00 2001 From: Tamo Date: Mon, 24 Jun 2024 11:13:45 +0200 Subject: [PATCH] fix all the flaky snapshots --- meilisearch/tests/vector/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meilisearch/tests/vector/mod.rs b/meilisearch/tests/vector/mod.rs index 53b2cca76..4172ef444 100644 --- a/meilisearch/tests/vector/mod.rs +++ b/meilisearch/tests/vector/mod.rs @@ -213,11 +213,11 @@ async fn clear_documents() { // Make sure the arroy DB has been cleared let (documents, _code) = index.search_post(json!({ "vector": [1, 1, 1] })).await; - snapshot!(json_string!(documents), @r###" + snapshot!(documents, @r###" { "hits": [], "query": "", - "processingTimeMs": 0, + "processingTimeMs": "[duration]", "limit": 20, "offset": 0, "estimatedTotalHits": 0, @@ -272,7 +272,7 @@ async fn add_remove_one_vector_4588() { snapshot!(task, name: "document-deleted"); let (documents, _code) = index.search_post(json!({"vector": [1, 1, 1] })).await; - snapshot!(json_string!(documents), @r###" + snapshot!(documents, @r###" { "hits": [ { @@ -281,7 +281,7 @@ async fn add_remove_one_vector_4588() { } ], "query": "", - "processingTimeMs": 1, + "processingTimeMs": "[duration]", "limit": 20, "offset": 0, "estimatedTotalHits": 1,