Fix the tests

This commit is contained in:
Clément Renault 2024-03-26 18:07:43 +01:00
parent 34262c7a0d
commit 69f8b2730d
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
3 changed files with 3 additions and 2 deletions

View file

@ -331,7 +331,7 @@ mod tests {
let rtxn = index.read_txn()?;
let mut ctx = SearchContext::new(&index, &rtxn);
// panics with `attempt to add with overflow` before <https://github.com/meilisearch/meilisearch/issues/3785>
let located_query_terms = located_query_terms_from_tokens(&mut ctx, tokens, None)?;
let (located_query_terms, _) = located_query_terms_from_tokens(&mut ctx, tokens, None)?;
assert!(located_query_terms.is_empty());
Ok(())