From 5bea1092fb2064dd951e6e13d9ee645508f9d280 Mon Sep 17 00:00:00 2001 From: Tamo Date: Mon, 11 Sep 2023 16:56:16 +0200 Subject: [PATCH] fix the flaky test --- meilisearch/tests/snapshot/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch/tests/snapshot/mod.rs b/meilisearch/tests/snapshot/mod.rs index be84cc0f3..1312aa9ca 100644 --- a/meilisearch/tests/snapshot/mod.rs +++ b/meilisearch/tests/snapshot/mod.rs @@ -129,7 +129,7 @@ async fn perform_on_demand_snapshot() { "enqueuedAt": "[date]" } "###); - let task = index.wait_task(4).await; + let task = index.wait_task(task.uid()).await; snapshot!(json_string!(task, { ".enqueuedAt" => "[date]", ".startedAt" => "[date]", ".finishedAt" => "[date]", ".duration" => "[duration]" }), @r###" { "uid": 4,