Skip to content

Commit

Permalink
fix non-determinstic 'num_slashes_and_digits' test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkeldenker committed Feb 29, 2024
1 parent 488f812 commit 3f44aa6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions crates/core/src/ranking/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 3f44aa6

Please sign in to comment.