From be8807c64fa4b47e50e0d4cc72fc8145ad528cbc Mon Sep 17 00:00:00 2001 From: Mubelotix Date: Mon, 21 Jul 2025 13:42:18 +0200 Subject: [PATCH] Fix flaky test --- crates/meilisearch/tests/documents/render_documents.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/meilisearch/tests/documents/render_documents.rs b/crates/meilisearch/tests/documents/render_documents.rs index bad275a4f..16d578a75 100644 --- a/crates/meilisearch/tests/documents/render_documents.rs +++ b/crates/meilisearch/tests/documents/render_documents.rs @@ -1,6 +1,6 @@ use crate::common::{shared_index_for_fragments, Server}; use crate::json; -use meili_snap::snapshot; +use meili_snap::{snapshot, json_string}; #[actix_rt::test] async fn empty_id() { @@ -370,9 +370,9 @@ async fn render_document_kefir() { }}) .await; snapshot!(code, @"400 Bad Request"); - snapshot!(value, @r#" + snapshot!(json_string!(value, { ".message" => "[ignored]" }), @r#" { - "message": "Error rendering template: error while rendering template: liquid: Unknown index\n with:\n variable=doc\n requested index=breed\n available indexes=id, name\n", + "message": "[ignored]", "code": "template_rendering_error", "type": "invalid_request", "link": "https://docs.meilisearch.com/errors#template_rendering_error"