diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index 5dbde4301..84a82250e 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -116,7 +116,7 @@ jobs: override: true - name: Run cargo tree without default features and check lindera is not present run: | - if cargo tree -f '{p} {f}' -e normal --no-default-features | grep -vqz lindera; then + if cargo tree -f '{p} {f}' -e normal --no-default-features | grep -qz lindera; then echo "lindera has been found in the sources and it shouldn't" exit 1 fi diff --git a/meilisearch/tests/search/mod.rs b/meilisearch/tests/search/mod.rs index b65c0dc42..e80c5144d 100644 --- a/meilisearch/tests/search/mod.rs +++ b/meilisearch/tests/search/mod.rs @@ -301,7 +301,7 @@ async fn negative_special_cases_search() { index.add_documents(documents, None).await; index.wait_task(0).await; - index.update_settings(json!({"synonyms": { "escape": ["glass"] }})).await; + index.update_settings(json!({"synonyms": { "escape": ["gläss"] }})).await; index.wait_task(1).await; // There is a synonym for escape -> glass but we don't want "escape", only the derivates: glass diff --git a/milli/src/search/new/tests/stop_words.rs b/milli/src/search/new/tests/stop_words.rs index 629751b48..dc1e45fce 100644 --- a/milli/src/search/new/tests/stop_words.rs +++ b/milli/src/search/new/tests/stop_words.rs @@ -13,7 +13,7 @@ use std::collections::BTreeSet; use std::iter::FromIterator; use crate::index::tests::TempIndex; -use crate::{db_snap, Search, SearchResult, TermsMatchingStrategy}; +use crate::{Search, SearchResult, TermsMatchingStrategy}; fn create_index() -> TempIndex { let index = TempIndex::new(); @@ -66,9 +66,10 @@ fn create_index() -> TempIndex { } #[test] +#[cfg(not(feature = "swedish-recomposition"))] fn test_stop_words_not_indexed() { let index = create_index(); - db_snap!(index, word_docids, @"6288f9d7db3703b02c57025eb4a69264"); + crate::db_snap!(index, word_docids, @"6288f9d7db3703b02c57025eb4a69264"); } #[test]