From 3f44aa6c20d20ec24fb70d99a64f7441df201151 Mon Sep 17 00:00:00 2001 From: Mikkel Denker Date: Thu, 29 Feb 2024 10:05:29 +0100 Subject: [PATCH] fix non-determinstic 'num_slashes_and_digits' test --- crates/core/src/ranking/mod.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/crates/core/src/ranking/mod.rs b/crates/core/src/ranking/mod.rs index de5d75ac..6082f789 100644 --- a/crates/core/src/ranking/mod.rs +++ b/crates/core/src/ranking/mod.rs @@ -745,6 +745,19 @@ mod tests { let result = searcher .search(&SearchQuery { query: "test".to_string(), + optic: Some(Optic { + rankings: vec![ + RankingCoeff { + target: RankingTarget::Signal("url_slashes".to_string()), + value: 100_000.0, + }, + RankingCoeff { + target: RankingTarget::Signal("url_digits".to_string()), + value: 100_000.0, + }, + ], + ..Default::default() + }), ..Default::default() }) .expect("Search failed");